CRUDlex\ServiceProvider::register PHP Method

register() public method

$app['crud'] contains an instance of the ServiceProvider afterwards.
public register ( Pimple\Container $app )
$app Pimple\Container the Container instance of the Silex application
    public function register(Container $app)
    {
        $app['crud'] = function () use($app) {
            $result = new static();
            $fileProcessor = $app->offsetExists('crud.fileprocessor') ? $app['crud.fileprocessor'] : new SimpleFilesystemFileProcessor();
            $manageI18n = $app->offsetExists('crud.manageI18n') ? $app['crud.manageI18n'] : true;
            $result->init($app['crud.datafactory'], $app['crud.file'], $fileProcessor, $manageI18n, $app);
            return $result;
        };
    }