var/cache/website/dev/sulu/websiteWebspaceCollectionCache.php line 41

Open in your IDE?
  1. <?php
  2. use Sulu\Component\Localization\Localization;
  3. use Sulu\Component\Webspace\Manager\WebspaceCollection;
  4. use Sulu\Component\Webspace\Portal;
  5. use Sulu\Component\Webspace\PortalInformation;
  6. use Sulu\Component\Webspace\Environment;
  7. use Sulu\Component\Webspace\Security;
  8. use Sulu\Component\Webspace\Segment;
  9. use Sulu\Component\Webspace\Url;
  10. use Sulu\Component\Webspace\CustomUrl;
  11. use Sulu\Component\Webspace\Webspace;
  12. use Sulu\Component\Webspace\Navigation;
  13. use Sulu\Component\Webspace\NavigationContext;
  14. /**
  15.  * websiteWebspaceCollectionCache
  16.  *
  17.  * DO NOT EDIT
  18.  * This file is autogenerated by the Sulu Webspace component
  19.  */
  20. class websiteWebspaceCollectionCache extends WebspaceCollection
  21. {
  22.     public function __construct()
  23.     {
  24.         $webspaceRefs = array();
  25.         $portalRefs = array();
  26.         $localizationRefs = array();
  27.         $segmentRefs = array();
  28.         $portalInformationRefs = array();
  29.         // new webspace
  30.         $webspace = new Webspace();
  31.         $webspace->setKey('acoa');
  32.         $webspace->setName("acoa.com");
  33.         // add localization to webspace
  34.         $localization0 = new Localization();
  35.         $localization0->setLanguage('en');
  36.         $localization0->setCountry('');
  37.         $localization0->setShadow('');
  38.         $localization0->setDefault(true);
  39.         $localization0->setXDefault('');
  40.         $localizationRefs['acoa_en'] = $localization0;
  41.         $webspace->addLocalization($localization0);
  42.         // add theme
  43.         $webspace->addTemplate('search''search/search');
  44.         $webspace->addTemplate('error''error/error');
  45.         $webspace->addDefaultTemplate('page''default');
  46.         $webspace->addDefaultTemplate('home''homepage');
  47.         // add navigation
  48.         $navigation = new Navigation();
  49.         $navigation->addContext(new NavigationContext('main',     array(
  50.                         'title' =>     array(
  51.                         'en' => 'Main Navigation',
  52.                                 'de' => 'Hauptnavigation',
  53.                 )
  54. ,
  55.                 )
  56. ));
  57.         $webspace->setNavigation($navigation);
  58.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  59.         // new portal
  60.         $portal = new Portal();
  61.         $portal->setName('acoa.com');
  62.         $portal->setKey('acoa');
  63.         $portal->setWebspace($webspace);
  64.         // add localization
  65.         $localization = new Localization();
  66.         $localization->setLanguage('en');
  67.         $localization->setCountry('');
  68.         $localization->setDefault('1');
  69.         $localization->setXDefault('');
  70.         $portal->addLocalization($localization);
  71.         // add environment
  72.         $environment = new Environment();
  73.         $environment->setType('prod');
  74.         // add environment url
  75.         $url = new Url();
  76.         $url->setUrl('{host}');
  77.         $url->setLanguage('en');
  78.         $url->setCountry('');
  79.         $url->setSegment('');
  80.         $url->setRedirect('');
  81.         $url->setMain(true);
  82.         $environment->addUrl($url);
  83.         $environment->addCustomUrl(new CustomUrl('&gt;*.*/*'));
  84.         $environment->addCustomUrl(new CustomUrl('*.{host}'));
  85.         $environment->addCustomUrl(new CustomUrl('*.{host}/*'));
  86.         $portal->addEnvironment($environment);
  87.         // add environment
  88.         $environment = new Environment();
  89.         $environment->setType('stage');
  90.         // add environment url
  91.         $url = new Url();
  92.         $url->setUrl('{host}');
  93.         $url->setLanguage('en');
  94.         $url->setCountry('');
  95.         $url->setSegment('');
  96.         $url->setRedirect('');
  97.         $url->setMain(true);
  98.         $environment->addUrl($url);
  99.         $portal->addEnvironment($environment);
  100.         // add environment
  101.         $environment = new Environment();
  102.         $environment->setType('test');
  103.         // add environment url
  104.         $url = new Url();
  105.         $url->setUrl('{host}');
  106.         $url->setLanguage('en');
  107.         $url->setCountry('');
  108.         $url->setSegment('');
  109.         $url->setRedirect('');
  110.         $url->setMain(true);
  111.         $environment->addUrl($url);
  112.         $portal->addEnvironment($environment);
  113.         // add environment
  114.         $environment = new Environment();
  115.         $environment->setType('dev');
  116.         // add environment url
  117.         $url = new Url();
  118.         $url->setUrl('{host}');
  119.         $url->setLanguage('en');
  120.         $url->setCountry('');
  121.         $url->setSegment('');
  122.         $url->setRedirect('');
  123.         $url->setMain(true);
  124.         $environment->addUrl($url);
  125.         $environment->addCustomUrl(new CustomUrl('&gt;*.*/*'));
  126.         $environment->addCustomUrl(new CustomUrl('*.{host}'));
  127.         $environment->addCustomUrl(new CustomUrl('*.{host}/*'));
  128.         $portal->addEnvironment($environment);
  129.         $portalRefs['acoa'] = $portal;
  130.         $webspace->addPortal($portal);
  131.         $webspaceRefs['acoa'] = $webspace;
  132.         $portalInformationRefs['prod']['*.{host}/*'] = new PortalInformation(
  133.             4,
  134.             $webspaceRefs['acoa'],
  135.             $portalRefs['acoa'],
  136.             null,
  137.             '*.{host}/*',
  138.             null,
  139.             null,
  140.             false,
  141.             '*.{host}/*',
  142.             1
  143.         );
  144.         $portalInformationRefs['prod']['*.{host}'] = new PortalInformation(
  145.             4,
  146.             $webspaceRefs['acoa'],
  147.             $portalRefs['acoa'],
  148.             null,
  149.             '*.{host}',
  150.             null,
  151.             null,
  152.             false,
  153.             '*.{host}',
  154.             1
  155.         );
  156.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  157.             1,
  158.             $webspaceRefs['acoa'],
  159.             $portalRefs['acoa'],
  160.             $localizationRefs['acoa_en'],
  161.             '{host}',
  162.             null,
  163.             null,
  164.             true,
  165.             '{host}',
  166.             5
  167.         );
  168.         $portalInformationRefs['prod']['&gt;*.*/*'] = new PortalInformation(
  169.             4,
  170.             $webspaceRefs['acoa'],
  171.             $portalRefs['acoa'],
  172.             null,
  173.             '&gt;*.*/*',
  174.             null,
  175.             null,
  176.             false,
  177.             '&gt;*.*/*',
  178.             1
  179.         );
  180.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  181.             1,
  182.             $webspaceRefs['acoa'],
  183.             $portalRefs['acoa'],
  184.             $localizationRefs['acoa_en'],
  185.             '{host}',
  186.             null,
  187.             null,
  188.             true,
  189.             '{host}',
  190.             5
  191.         );
  192.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  193.             1,
  194.             $webspaceRefs['acoa'],
  195.             $portalRefs['acoa'],
  196.             $localizationRefs['acoa_en'],
  197.             '{host}',
  198.             null,
  199.             null,
  200.             true,
  201.             '{host}',
  202.             5
  203.         );
  204.         $portalInformationRefs['dev']['*.{host}/*'] = new PortalInformation(
  205.             4,
  206.             $webspaceRefs['acoa'],
  207.             $portalRefs['acoa'],
  208.             null,
  209.             '*.{host}/*',
  210.             null,
  211.             null,
  212.             false,
  213.             '*.{host}/*',
  214.             1
  215.         );
  216.         $portalInformationRefs['dev']['*.{host}'] = new PortalInformation(
  217.             4,
  218.             $webspaceRefs['acoa'],
  219.             $portalRefs['acoa'],
  220.             null,
  221.             '*.{host}',
  222.             null,
  223.             null,
  224.             false,
  225.             '*.{host}',
  226.             1
  227.         );
  228.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  229.             1,
  230.             $webspaceRefs['acoa'],
  231.             $portalRefs['acoa'],
  232.             $localizationRefs['acoa_en'],
  233.             '{host}',
  234.             null,
  235.             null,
  236.             true,
  237.             '{host}',
  238.             5
  239.         );
  240.         $portalInformationRefs['dev']['&gt;*.*/*'] = new PortalInformation(
  241.             4,
  242.             $webspaceRefs['acoa'],
  243.             $portalRefs['acoa'],
  244.             null,
  245.             '&gt;*.*/*',
  246.             null,
  247.             null,
  248.             false,
  249.             '&gt;*.*/*',
  250.             1
  251.         );
  252.         $this->setWebspaces($webspaceRefs);
  253.         $this->setPortals($portalRefs);
  254.         $this->setPortalInformations($portalInformationRefs);
  255.     }
  256. }