Plugin.php
/**
     * Boot method, called right before the request route.
     *
     * @return array
     */
Boot method, called right before the request route.
@return array
Boot method called right before the request route . @return array
public function boot()
    {
        $pageManager = PageManager::instance();
        Event::listen('cms.router.beforeRoute', [$pageManager, 'findByUrl']);
        Event::listen('cms.page.beforeRenderPage', [$pageManager, 'renderContent']);        
    }
public function boot ( ) { $ pageManager = PageManager :: instance ( ) ; Event :: listen ( 'cms.router.beforeRoute' , [ $ pageManager , 'findByUrl' ] ) ; Event :: listen ( 'cms.page.beforeRenderPage' , [ $ pageManager , 'renderContent' ] ) ; }
Boot method, called right before the request route.
Boot method called right before the request route .