you should edit your composer.json like that:
"autoload": {
"psr-4": {
"App\\": ""
}
},
"require": {
// ...
},
"scripts": {
// ...
}
and dependencies.php
// PagesController
$container['PagesController'] = function ($container)
{
return new \App\Controller\PagesController;
};
next, you update your autoload
composer dump-autoload -o
网友评论