1<?php 2 3namespace Bolt\Provider; 4 5use Bolt\Filesystem\FilePermissions; 6use Silex\Application; 7use Silex\ServiceProviderInterface; 8 9/** 10 * @author Benjamin Georgeault <benjamin@wedgesama.fr> 11 */ 12class FilePermissionsServiceProvider implements ServiceProviderInterface 13{ 14 public function register(Application $app) 15 { 16 $app['filepermissions'] = $app->share( 17 function ($app) { 18 $filepermissions = new FilePermissions($app); 19 20 return $filepermissions; 21 } 22 ); 23 } 24 25 public function boot(Application $app) 26 { 27 } 28} 29