share(function ($app) { return array( $app['root.path'] . '/www/assets/bootstrap/img/glyphicons-halflings-white.png' => $app['root.path'] . '/www/skins/build/bootstrap/img/glyphicons-halflings-white.png', $app['root.path'] . '/www/assets/bootstrap/img/glyphicons-halflings.png' => $app['root.path'] . '/www/skins/build/bootstrap/img/glyphicons-halflings.png', ); }); $app['phraseanet.less-mapping.base'] = $app->share(function ($app) { return array( $app['root.path'] . '/www/assets/bootstrap/less/bootstrap.less' => $app['root.path'] . '/www/skins/build/bootstrap/css/bootstrap.css', $app['root.path'] . '/www/assets/bootstrap/less/responsive.less' => $app['root.path'] . '/www/skins/build/bootstrap/css/bootstrap-responsive.css', ); }); $app['phraseanet.less-mapping.customizable'] = $app->share(function ($app) { return array( $app['root.path'] . '/www/skins/login/less/login.less' => $app['root.path'] . '/www/skins/build/login.css', $app['root.path'] . '/www/skins/account/account.less' => $app['root.path'] . '/www/skins/build/account.css', ); }); $app['phraseanet.less-mapping'] = $app->share(function ($app) { return array_merge( $app['phraseanet.less-mapping.base'], $app['phraseanet.less-mapping.customizable'] ); }); $app['phraseanet.less-compiler'] = $app->share(function ($app) { return new LessCompiler($app['filesystem'], $app['driver.recess']); }); $app['phraseanet.less-builder'] = $app->share(function ($app) { return new LessBuilder($app['phraseanet.less-compiler'], $app['filesystem']); }); } public function boot(Application $app) { } }