Netson\L4gettext\L4gettextServiceProvider::registerL4gettext PHP Method

registerL4gettext() public method

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