src/App.php
private function loadServiceProvider()
    {
        \Tiga\Framework\Facade\Facade::setFacadeContainer($this);

        // Available Provider
        $providers = $this['config']->get('provider');

        $providers = array_unique($providers);

        foreach ($providers as $provider) {
            $instance = new $provider($this);
            $instance->register();
        }

        // Aliases
        $aliases = $this['config']->get('alias');

        $aliases = array_unique($aliases);

        $aliasMapper = \Tonjoo\Almari\AliasMapper::getInstance();

        $aliasMapper->classAlias($aliases);
    }
private function loadServiceProvider()
    {
        \Tiga\Framework\Facade\Facade::setFacadeContainer($this);

        // Available Provider
        $providers = $this['config']->get('provider');

        $providers = array_unique($providers);

        foreach ($providers as $provider) {
            $instance = new $provider($this);
            $instance->register();
        }

        // Aliases
        $aliases = $this['config']->get('alias');

        $aliases = array_unique($aliases);

        $aliasMapper = \Tonjoo\Almari\AliasMapper::getInstance();

        $aliasMapper->classAlias($aliases);
    }
private function loadServiceProvider ( ) { \ Tiga \ Framework \ Facade \ Facade :: setFacadeContainer ( $ this ) ; // Available Provider $ providers = $ this [ 'config' ] -> get ( 'provider' ) ; $ providers = array_unique ( $ providers ) ; foreach ( $ providers as $ provider ) { $ instance = new $ provider ( $ this ) ; $ instance -> register ( ) ; } // Aliases $ aliases = $ this [ 'config' ] -> get ( 'alias' ) ; $ aliases = array_unique ( $ aliases ) ; $ aliasMapper = \ Tonjoo \ Almari \ AliasMapper :: getInstance ( ) ; $ aliasMapper -> classAlias ( $ aliases ) ; }
Load registered service provider in the main plugin and child plugin.
Load registered service provider in the main plugin and child plugin .