mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
27 lines
566 B
PHP
27 lines
566 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea;
|
|
|
|
use Silex\Application as SilexApplication;
|
|
use Silex\ServiceProviderInterface;
|
|
|
|
class PhraseanetServiceProvider implements ServiceProviderInterface
|
|
{
|
|
|
|
public function register(SilexApplication $app)
|
|
{
|
|
$app['phraseanet.core'] = $app->share(function($app) {
|
|
return \bootstrap::getCore();
|
|
});
|
|
|
|
$app['phraseanet.appbox'] = $app->share(function($app) {
|
|
return new \appbox($app['phraseanet.core']);
|
|
});
|
|
}
|
|
|
|
public function boot(SilexApplication $app)
|
|
{
|
|
|
|
}
|
|
}
|