protected function createDefaultPages()
    {
        SubsiteState::singleton()->withState(function (SubsiteState $newState) {
            $newState->setSubsiteId($this->ID);

            // Silence DB schema output
            DB::quiet();
            $siteTree = new SiteTree();
            $siteTree->requireDefaultRecords();
        });
    }
protected function createDefaultPages()
    {
        SubsiteState::singleton()->withState(function (SubsiteState $newState) {
            $newState->setSubsiteId($this->ID);

            // Silence DB schema output
            DB::quiet();
            $siteTree = new SiteTree();
            $siteTree->requireDefaultRecords();
        });
    }
protected function createDefaultPages ( ) { SubsiteState :: singleton ( ) -> withState ( function ( SubsiteState $ newState ) { $ newState -> setSubsiteId ( $ this -> ID ) ; // Silence DB schema output DB :: quiet ( ) ; $ siteTree = new SiteTree ( ) ; $ siteTree -> requireDefaultRecords ( ) ; } ) ; }
Automatically create default pages for new subsites
Automatically create default pages for new subsites