mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-05-05 14:35:55 +02:00
made a service shared
This commit is contained in:
@@ -11,13 +11,12 @@ class UtilsServiceProvider implements ServiceProviderInterface
|
||||
* Register the Utils class on the Application ServiceProvider
|
||||
*
|
||||
* @param Application $app Silex Application
|
||||
* @return Utils Instance of the Utils class
|
||||
*/
|
||||
public function register(Application $app)
|
||||
{
|
||||
$app['utils'] = function () use ($app) {
|
||||
$app['utils'] = $app->share(function () use ($app) {
|
||||
return new Utils($app);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
public function boot(Application $app)
|
||||
|
||||
Reference in New Issue
Block a user