How to register package service provider the whole application?
Permalink
Hello
If I use provider located from the application source it works:
app.php:
but if I try to register a provider located from a package, just got "not found" error
The MyPackageServiceProvider inside the package works well.
Of course, if I register manually ex. in the PageTypeController:
it also work, but I don't want to register all of controller outside the package, if possible.
If I use provider located from the application source it works:
app.php:
but if I try to register a provider located from a package, just got "not found" error
The MyPackageServiceProvider inside the package works well.
Of course, if I register manually ex. in the PageTypeController:
$app = Core::make('app'); $provider = new \Concrete\Package\MyPackage\Src\Utility\MyPackageServiceProvider($app); $provider->register();
it also work, but I don't want to register all of controller outside the package, if possible.
Since no one has offered a solution to this question, you might consider Stack Overflow.
https://www.concrete5.org/developers/stack-overflow...