Netson\L4gettext\L4gettextServiceProvider::registerL4gettextBladeCompiler PHP Méthode

registerL4gettextBladeCompiler() public méthode

    public function registerL4gettextBladeCompiler()
    {
        // register bladecompiler
        $this->app['bladecompiler'] = $this->app->share(function ($app) {
            return new Compilers\BladeCompiler(new Filesystem(), "");
        });
        // Shortcut so developers don't need to add an Alias in app/config/app.php
        $this->app->booting(function () {
            $loader = AliasLoader::getInstance();
            $loader->alias('BladeCompiler', 'Netson\\L4gettext\\Facades\\BladeCompiler');
        });
    }