public function init()
    {
        // Get services
        $services = $this->getServices();

        // Register all
        foreach ($services as $alias => $service) {
            $this->add($service, $alias);
        }

        // Register configurations
        $this->initConfigs();

        // Register post types / terms / widgets / admin pages and more
        $this->registerComponents();
    }
public function init()
    {
        // Get services
        $services = $this->getServices();

        // Register all
        foreach ($services as $alias => $service) {
            $this->add($service, $alias);
        }

        // Register configurations
        $this->initConfigs();

        // Register post types / terms / widgets / admin pages and more
        $this->registerComponents();
    }
public function init ( ) { // Get services $ services = $ this -> getServices ( ) ; // Register all foreach ( $ services as $ alias => $ service ) { $ this -> add ( $ service , $ alias ) ; } // Register configurations $ this -> initConfigs ( ) ; // Register post types / terms / widgets / admin pages and more $ this -> registerComponents ( ) ; }
Initialize all components.
Initialize all components .