mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-08-07 01:19:46 +02:00
Initial commit
This commit is contained in:
22
lib/Application/UtilsServiceProvider.php
Normal file
22
lib/Application/UtilsServiceProvider.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace Application;
|
||||
|
||||
use Silex\Application;
|
||||
use Silex\ServiceProviderInterface;
|
||||
|
||||
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) {
|
||||
return new Utils;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user