Created
December 13, 2016 14:52
-
-
Save veewee/0d70eb9ee88c24f5f7306c5d31e8a593 to your computer and use it in GitHub Desktop.
Relative ::class expectations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application; | |
use Application\Controller\IndexController; | |
use Application\Controller\HomeController; | |
use Application\Controller\ContactController; | |
return [ | |
'controllers' => [ | |
'invokables' => [ | |
IndexController::class => IndexController::class, | |
HomeController::class => HomeController::class, | |
ContactController::class => ContactController::class, | |
], | |
], | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application; | |
return [ | |
'controllers' => [ | |
'invokables' => [ | |
Controller\IndexController::class => Controller\IndexController::class, | |
Controller\HomeController::class => Controller\HomeController::class, | |
Controller\ContactController::class => Controller\ContactController::class, | |
], | |
], | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application; | |
return [ | |
'controllers' => [ | |
'invokables' => [ | |
'Application\Controller\IndexController' => 'Application\Controller\IndexController', | |
'Application\Controller\HomeController' => 'Application\Controller\HomeController', | |
'Application\Controller\ContactController' => 'Application\Controller\ContactController', | |
], | |
], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment