Skip to content

Instantly share code, notes, and snippets.

@veewee
Created December 13, 2016 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veewee/0d70eb9ee88c24f5f7306c5d31e8a593 to your computer and use it in GitHub Desktop.
Save veewee/0d70eb9ee88c24f5f7306c5d31e8a593 to your computer and use it in GitHub Desktop.
Relative ::class expectations
<?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,
],
],
];
<?php
namespace Application;
return [
'controllers' => [
'invokables' => [
Controller\IndexController::class => Controller\IndexController::class,
Controller\HomeController::class => Controller\HomeController::class,
Controller\ContactController::class => Controller\ContactController::class,
],
],
];
<?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