How to register package service provider the whole application?

Permalink
Hello

If I use provider located from the application source it works:

app.php:

return array(
    'providers' => append_config(array(
        '\Application\Src\Utility\UtilityServiceProvider',
    ))
);


but if I try to register a provider located from a package, just got "not found" error

return array(
    'providers' => append_config(array(
        '\Application\Src\Utility\UtilityServiceProvider',
        '\Concrete\Package\MyPackage\Src\Utility\MyPackageServiceProvider',
    ))
);


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.

 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi globalcisevil,

Since no one has offered a solution to this question, you might consider Stack Overflow.
https://www.concrete5.org/developers/stack-overflow...
bbaby replied on at Permalink Reply
Could You please share the sample code. How can create a Helper class before we are used to create a php class inside Helpers folder.