protected function registerComponents()
    {
        ComponentManager::instance()->registerComponents(function ($manager) {
            $manager->registerComponent(\Cms\Components\ViewBag::class, 'viewBag');
            $manager->registerComponent(\Cms\Components\Resources::class, 'resources');
        });
    }
protected function registerComponents()
    {
        ComponentManager::instance()->registerComponents(function ($manager) {
            $manager->registerComponent(\Cms\Components\ViewBag::class, 'viewBag');
            $manager->registerComponent(\Cms\Components\Resources::class, 'resources');
        });
    }
protected function registerComponents ( ) { ComponentManager :: instance ( ) -> registerComponents ( function ( $ manager ) { $ manager -> registerComponent ( \ Cms \ Components \ ViewBag :: class , 'viewBag' ) ; $ manager -> registerComponent ( \ Cms \ Components \ Resources :: class , 'resources' ) ; } ) ; }
Register components.
Register components .