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('hub-representationmedia');
  32.         $webspace->setName("hub.representationmedia.co.uk");
  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['hub-representationmedia_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('hub.representationmedia.co.uk');
  62.         $portal->setKey('hub-representationmedia');
  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.         $portal->addEnvironment($environment);
  84.         // add environment
  85.         $environment = new Environment();
  86.         $environment->setType('stage');
  87.         // add environment url
  88.         $url = new Url();
  89.         $url->setUrl('{host}');
  90.         $url->setLanguage('en');
  91.         $url->setCountry('');
  92.         $url->setSegment('');
  93.         $url->setRedirect('');
  94.         $url->setMain(true);
  95.         $environment->addUrl($url);
  96.         $portal->addEnvironment($environment);
  97.         // add environment
  98.         $environment = new Environment();
  99.         $environment->setType('test');
  100.         // add environment url
  101.         $url = new Url();
  102.         $url->setUrl('{host}');
  103.         $url->setLanguage('en');
  104.         $url->setCountry('');
  105.         $url->setSegment('');
  106.         $url->setRedirect('');
  107.         $url->setMain(true);
  108.         $environment->addUrl($url);
  109.         $portal->addEnvironment($environment);
  110.         // add environment
  111.         $environment = new Environment();
  112.         $environment->setType('dev');
  113.         // add environment url
  114.         $url = new Url();
  115.         $url->setUrl('{host}');
  116.         $url->setLanguage('en');
  117.         $url->setCountry('');
  118.         $url->setSegment('');
  119.         $url->setRedirect('');
  120.         $url->setMain(true);
  121.         $environment->addUrl($url);
  122.         $portal->addEnvironment($environment);
  123.         $portalRefs['hub-representationmedia'] = $portal;
  124.         $webspace->addPortal($portal);
  125.         $webspaceRefs['hub-representationmedia'] = $webspace;
  126.         // new webspace
  127.         $webspace = new Webspace();
  128.         $webspace->setKey('life-insurance-representationmedia');
  129.         $webspace->setName("life-insurance.representationmedia.co.uk");
  130.         // add localization to webspace
  131.         $localization0 = new Localization();
  132.         $localization0->setLanguage('en');
  133.         $localization0->setCountry('');
  134.         $localization0->setShadow('');
  135.         $localization0->setDefault(true);
  136.         $localization0->setXDefault('');
  137.         $localizationRefs['life-insurance-representationmedia_en'] = $localization0;
  138.         $webspace->addLocalization($localization0);
  139.         // add theme
  140.         $webspace->addTemplate('search''search/search');
  141.         $webspace->addTemplate('error''error/error');
  142.         $webspace->addDefaultTemplate('page''default');
  143.         $webspace->addDefaultTemplate('home''homepage');
  144.         // add navigation
  145.         $navigation = new Navigation();
  146.         $navigation->addContext(new NavigationContext('main',     array(
  147.                         'title' =>     array(
  148.                         'en' => 'Main Navigation',
  149.                                 'de' => 'Hauptnavigation',
  150.                 )
  151. ,
  152.                 )
  153. ));
  154.         $webspace->setNavigation($navigation);
  155.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  156.         // new portal
  157.         $portal = new Portal();
  158.         $portal->setName('life-insurance.representationmedia.co.uk');
  159.         $portal->setKey('life-insurance-representationmedia');
  160.         $portal->setWebspace($webspace);
  161.         // add localization
  162.         $localization = new Localization();
  163.         $localization->setLanguage('en');
  164.         $localization->setCountry('');
  165.         $localization->setDefault('1');
  166.         $localization->setXDefault('');
  167.         $portal->addLocalization($localization);
  168.         // add environment
  169.         $environment = new Environment();
  170.         $environment->setType('prod');
  171.         // add environment url
  172.         $url = new Url();
  173.         $url->setUrl('life-insurance.representationmedia.co.uk');
  174.         $url->setLanguage('en');
  175.         $url->setCountry('');
  176.         $url->setSegment('');
  177.         $url->setRedirect('');
  178.         $url->setMain(true);
  179.         $environment->addUrl($url);
  180.         $portal->addEnvironment($environment);
  181.         // add environment
  182.         $environment = new Environment();
  183.         $environment->setType('stage');
  184.         // add environment url
  185.         $url = new Url();
  186.         $url->setUrl('life-insurance.representationmedia.co.uk');
  187.         $url->setLanguage('en');
  188.         $url->setCountry('');
  189.         $url->setSegment('');
  190.         $url->setRedirect('');
  191.         $url->setMain(true);
  192.         $environment->addUrl($url);
  193.         $portal->addEnvironment($environment);
  194.         // add environment
  195.         $environment = new Environment();
  196.         $environment->setType('test');
  197.         // add environment url
  198.         $url = new Url();
  199.         $url->setUrl('life-insurance.representationmedia.co.uk');
  200.         $url->setLanguage('en');
  201.         $url->setCountry('');
  202.         $url->setSegment('');
  203.         $url->setRedirect('');
  204.         $url->setMain(true);
  205.         $environment->addUrl($url);
  206.         $portal->addEnvironment($environment);
  207.         // add environment
  208.         $environment = new Environment();
  209.         $environment->setType('dev');
  210.         // add environment url
  211.         $url = new Url();
  212.         $url->setUrl('life-insurance.representationmedia.co.uk');
  213.         $url->setLanguage('en');
  214.         $url->setCountry('');
  215.         $url->setSegment('');
  216.         $url->setRedirect('');
  217.         $url->setMain(true);
  218.         $environment->addUrl($url);
  219.         $portal->addEnvironment($environment);
  220.         $portalRefs['life-insurance-representationmedia'] = $portal;
  221.         $webspace->addPortal($portal);
  222.         $webspaceRefs['life-insurance-representationmedia'] = $webspace;
  223.         $portalInformationRefs['prod']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
  224.             1,
  225.             $webspaceRefs['life-insurance-representationmedia'],
  226.             $portalRefs['life-insurance-representationmedia'],
  227.             $localizationRefs['life-insurance-representationmedia_en'],
  228.             'life-insurance.representationmedia.co.uk',
  229.             null,
  230.             null,
  231.             true,
  232.             'life-insurance.representationmedia.co.uk',
  233.             10
  234.         );
  235.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  236.             1,
  237.             $webspaceRefs['hub-representationmedia'],
  238.             $portalRefs['hub-representationmedia'],
  239.             $localizationRefs['hub-representationmedia_en'],
  240.             '{host}',
  241.             null,
  242.             null,
  243.             true,
  244.             '{host}',
  245.             5
  246.         );
  247.         $portalInformationRefs['stage']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
  248.             1,
  249.             $webspaceRefs['life-insurance-representationmedia'],
  250.             $portalRefs['life-insurance-representationmedia'],
  251.             $localizationRefs['life-insurance-representationmedia_en'],
  252.             'life-insurance.representationmedia.co.uk',
  253.             null,
  254.             null,
  255.             true,
  256.             'life-insurance.representationmedia.co.uk',
  257.             10
  258.         );
  259.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  260.             1,
  261.             $webspaceRefs['hub-representationmedia'],
  262.             $portalRefs['hub-representationmedia'],
  263.             $localizationRefs['hub-representationmedia_en'],
  264.             '{host}',
  265.             null,
  266.             null,
  267.             true,
  268.             '{host}',
  269.             5
  270.         );
  271.         $portalInformationRefs['test']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
  272.             1,
  273.             $webspaceRefs['life-insurance-representationmedia'],
  274.             $portalRefs['life-insurance-representationmedia'],
  275.             $localizationRefs['life-insurance-representationmedia_en'],
  276.             'life-insurance.representationmedia.co.uk',
  277.             null,
  278.             null,
  279.             true,
  280.             'life-insurance.representationmedia.co.uk',
  281.             10
  282.         );
  283.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  284.             1,
  285.             $webspaceRefs['hub-representationmedia'],
  286.             $portalRefs['hub-representationmedia'],
  287.             $localizationRefs['hub-representationmedia_en'],
  288.             '{host}',
  289.             null,
  290.             null,
  291.             true,
  292.             '{host}',
  293.             5
  294.         );
  295.         $portalInformationRefs['dev']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
  296.             1,
  297.             $webspaceRefs['life-insurance-representationmedia'],
  298.             $portalRefs['life-insurance-representationmedia'],
  299.             $localizationRefs['life-insurance-representationmedia_en'],
  300.             'life-insurance.representationmedia.co.uk',
  301.             null,
  302.             null,
  303.             true,
  304.             'life-insurance.representationmedia.co.uk',
  305.             10
  306.         );
  307.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  308.             1,
  309.             $webspaceRefs['hub-representationmedia'],
  310.             $portalRefs['hub-representationmedia'],
  311.             $localizationRefs['hub-representationmedia_en'],
  312.             '{host}',
  313.             null,
  314.             null,
  315.             true,
  316.             '{host}',
  317.             5
  318.         );
  319.         $this->setWebspaces($webspaceRefs);
  320.         $this->setPortals($portalRefs);
  321.         $this->setPortalInformations($portalInformationRefs);
  322.     }
  323. }