Files
GitList/lib/Application/UtilsServiceProvider.php
Klaus Silveira df43c987cf Initial commit
2012-05-18 01:38:33 -03:00

22 lines
495 B
PHP

<?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;
};
}
}