var/cache/website/dev/sulu/websiteWebspaceCollectionCache.php line 23
<?phpuse Sulu\Component\Localization\Localization;use Sulu\Component\Webspace\Manager\WebspaceCollection;use Sulu\Component\Webspace\Portal;use Sulu\Component\Webspace\PortalInformation;use Sulu\Component\Webspace\Environment;use Sulu\Component\Webspace\Security;use Sulu\Component\Webspace\Segment;use Sulu\Component\Webspace\Url;use Sulu\Component\Webspace\CustomUrl;use Sulu\Component\Webspace\Webspace;use Sulu\Component\Webspace\Navigation;use Sulu\Component\Webspace\NavigationContext;/*** websiteWebspaceCollectionCache** DO NOT EDIT* This file is autogenerated by the Sulu Webspace component*/class websiteWebspaceCollectionCache extends WebspaceCollection{public function __construct(){$webspaceRefs = array();$portalRefs = array();$localizationRefs = array();$segmentRefs = array();$portalInformationRefs = array();// new webspace$webspace = new Webspace();$webspace->setKey('pqna');$webspace->setName("pqn-a.fr");$security = new Security();$security->setSystem('Website');$security->setPermissionCheck(false);$webspace->setSecurity($security);// add localization to webspace$localization0 = new Localization('fr', '');$localization0->setShadow('');$localization0->setDefault(true);$localization0->setXDefault('');$localizationRefs['pqna_fr'] = $localization0;$webspace->addLocalization($localization0);// add theme$webspace->addTemplate('search', 'search/search');$webspace->addTemplate('error', 'error/error');$webspace->addDefaultTemplate('page', 'pqna');$webspace->addDefaultTemplate('home', 'pqna');// add navigation$navigation = new Navigation();$navigation->addContext(new NavigationContext('main', array('title' => array('fr' => 'Navigation principale',),)));$navigation->addContext(new NavigationContext('footer', array('title' => array('fr' => 'Navigation pied de page',),)));$navigation->addContext(new NavigationContext('bottomfooter', array('title' => array('fr' => 'Navigation au plus bas de la page',),)));$navigation->addContext(new NavigationContext('aside', array('title' => array('fr' => 'Navigation sur le côté (pour fiche thématique)',),)));$navigation->addContext(new NavigationContext('fiche-thematique-ressources', array('title' => array('fr' => '[Fiche thématique] Les ressources',),)));$navigation->addContext(new NavigationContext('fiche-thematique-actualites', array('title' => array('fr' => '[Fiche thématique] Les actualités',),)));$navigation->addContext(new NavigationContext('fiche-thematique-acteurs', array('title' => array('fr' => '[Fiche thématique] Les acteurs',),)));$webspace->setNavigation($navigation);$webspace->setResourceLocatorStrategy('tree_leaf_edit');// new portal$portal = new Portal();$portal->setName('pqn-a.fr');$portal->setKey('pqna');$portal->setWebspace($webspace);// add localization$localization = new Localization('fr', '');$localization->setDefault('1');$localization->setXDefault('');$portal->addLocalization($localization);// add environment$environment = new Environment();$environment->setType('prod');// add environment url$url = new Url();$url->setUrl('{host}/{localization}');$url->setLanguage('fr');$url->setCountry('');$url->setSegment('');$url->setRedirect('');$url->setMain(true);$environment->addUrl($url);$portal->addEnvironment($environment);// add environment$environment = new Environment();$environment->setType('stage');// add environment url$url = new Url();$url->setUrl('{host}/{localization}');$url->setLanguage('fr');$url->setCountry('');$url->setSegment('');$url->setRedirect('');$url->setMain(true);$environment->addUrl($url);$portal->addEnvironment($environment);// add environment$environment = new Environment();$environment->setType('test');// add environment url$url = new Url();$url->setUrl('{host}/{localization}');$url->setLanguage('fr');$url->setCountry('');$url->setSegment('');$url->setRedirect('');$url->setMain(true);$environment->addUrl($url);$portal->addEnvironment($environment);// add environment$environment = new Environment();$environment->setType('dev');// add environment url$url = new Url();$url->setUrl('{host}/{localization}');$url->setLanguage('fr');$url->setCountry('');$url->setSegment('');$url->setRedirect('');$url->setMain(true);$environment->addUrl($url);$portal->addEnvironment($environment);if (isset($portalRefs['pqna'])) {throw new \InvalidArgumentException('Portal with key "pqna" already exists in webspace "' . $portalRefs['pqna']->getWebspace()->getKey() . '" and conflicts with webspace "pqna". Portal keys must be unique across all webspaces.');}$portalRefs['pqna'] = $portal;$webspace->addPortal($portal);$webspaceRefs['pqna'] = $webspace;$portalInformationRefs['prod']['{host}/fr'] = new PortalInformation(1,$webspaceRefs['pqna'],$portalRefs['pqna'],$localizationRefs['pqna_fr'],'{host}/fr',null,null,true,'{host}/{localization}',5);$portalInformationRefs['prod']['{host}'] = new PortalInformation(2,$webspaceRefs['pqna'],$portalRefs['pqna'],null,'{host}',null,'{host}/{localization}',false,'{host}/{localization}',4);$portalInformationRefs['stage']['{host}/fr'] = new PortalInformation(1,$webspaceRefs['pqna'],$portalRefs['pqna'],$localizationRefs['pqna_fr'],'{host}/fr',null,null,true,'{host}/{localization}',5);$portalInformationRefs['stage']['{host}'] = new PortalInformation(2,$webspaceRefs['pqna'],$portalRefs['pqna'],null,'{host}',null,'{host}/{localization}',false,'{host}/{localization}',4);$portalInformationRefs['test']['{host}/fr'] = new PortalInformation(1,$webspaceRefs['pqna'],$portalRefs['pqna'],$localizationRefs['pqna_fr'],'{host}/fr',null,null,true,'{host}/{localization}',5);$portalInformationRefs['test']['{host}'] = new PortalInformation(2,$webspaceRefs['pqna'],$portalRefs['pqna'],null,'{host}',null,'{host}/{localization}',false,'{host}/{localization}',4);$portalInformationRefs['dev']['{host}/fr'] = new PortalInformation(1,$webspaceRefs['pqna'],$portalRefs['pqna'],$localizationRefs['pqna_fr'],'{host}/fr',null,null,true,'{host}/{localization}',5);$portalInformationRefs['dev']['{host}'] = new PortalInformation(2,$webspaceRefs['pqna'],$portalRefs['pqna'],null,'{host}',null,'{host}/{localization}',false,'{host}/{localization}',4);$this->setWebspaces($webspaceRefs);$this->setPortals($portalRefs);$this->setPortalInformations($portalInformationRefs);}}