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

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('duplicated');
  32. $webspace->setName("duplicated");
  33. // add localization to webspace
  34. $localization0 = new Localization('fr', '');
  35. $localization0->setShadow('');
  36. $localization0->setDefault(true);
  37. $localization0->setXDefault('');
  38. $localizationRefs['duplicated_fr'] = $localization0;
  39. $webspace->addLocalization($localization0);
  40. // add localization to webspace
  41. $localization0 = new Localization('en', '');
  42. $localization0->setShadow('');
  43. $localization0->setDefault(false);
  44. $localization0->setXDefault('');
  45. $localizationRefs['duplicated_en'] = $localization0;
  46. $webspace->addLocalization($localization0);
  47. // add theme
  48. $webspace->addTemplate('search', 'search/search');
  49. $webspace->addTemplate('error', 'error/error');
  50. $webspace->addTemplate('error-404', 'error/error-404');
  51. $webspace->addDefaultTemplate('page', 'default');
  52. $webspace->addDefaultTemplate('home', 'default');
  53. $webspace->addExcludedTemplate('partner_login');
  54. // add navigation
  55. $navigation = new Navigation();
  56. $navigation->addContext(new NavigationContext('main', array(
  57. 'title' => array(
  58. 'fr' => 'Navigation principale',
  59. 'en' => 'Main Navigation',
  60. )
  61. ,
  62. )
  63. ));
  64. $navigation->addContext(new NavigationContext('footer', array(
  65. 'title' => array(
  66. 'en' => 'Footer Navigation',
  67. 'fr' => 'Navigation du pied de page',
  68. )
  69. ,
  70. )
  71. ));
  72. $webspace->setNavigation($navigation);
  73. $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  74. // new portal
  75. $portal = new Portal();
  76. $portal->setName('duplicated.croisiland.com');
  77. $portal->setKey('duplicated.croisiland');
  78. $portal->setWebspace($webspace);
  79. // add localization
  80. $localization = new Localization('fr', '');
  81. $localization->setDefault('1');
  82. $localization->setXDefault('');
  83. $portal->addLocalization($localization);
  84. // add localization
  85. $localization = new Localization('en', '');
  86. $localization->setDefault('');
  87. $localization->setXDefault('');
  88. $portal->addLocalization($localization);
  89. // add environment
  90. $environment = new Environment();
  91. $environment->setType('prod');
  92. // add environment url
  93. $url = new Url();
  94. $url->setUrl('duplicated.{host}');
  95. $url->setLanguage('fr');
  96. $url->setCountry('');
  97. $url->setSegment('');
  98. $url->setRedirect('');
  99. $url->setMain(true);
  100. $environment->addUrl($url);
  101. // add environment url
  102. $url = new Url();
  103. $url->setUrl('{host}/fr');
  104. $url->setLanguage('fr');
  105. $url->setCountry('');
  106. $url->setSegment('');
  107. $url->setRedirect('');
  108. $url->setMain(false);
  109. $environment->addUrl($url);
  110. // add environment url
  111. $url = new Url();
  112. $url->setUrl('duplicated.{host}/en');
  113. $url->setLanguage('en');
  114. $url->setCountry('');
  115. $url->setSegment('');
  116. $url->setRedirect('');
  117. $url->setMain(false);
  118. $environment->addUrl($url);
  119. $portal->addEnvironment($environment);
  120. // add environment
  121. $environment = new Environment();
  122. $environment->setType('stage');
  123. // add environment url
  124. $url = new Url();
  125. $url->setUrl('duplicated.{host}');
  126. $url->setLanguage('fr');
  127. $url->setCountry('');
  128. $url->setSegment('');
  129. $url->setRedirect('');
  130. $url->setMain(true);
  131. $environment->addUrl($url);
  132. // add environment url
  133. $url = new Url();
  134. $url->setUrl('{host}/fr');
  135. $url->setLanguage('fr');
  136. $url->setCountry('');
  137. $url->setSegment('');
  138. $url->setRedirect('');
  139. $url->setMain(false);
  140. $environment->addUrl($url);
  141. // add environment url
  142. $url = new Url();
  143. $url->setUrl('duplicated.{host}/en');
  144. $url->setLanguage('en');
  145. $url->setCountry('');
  146. $url->setSegment('');
  147. $url->setRedirect('');
  148. $url->setMain(false);
  149. $environment->addUrl($url);
  150. $portal->addEnvironment($environment);
  151. // add environment
  152. $environment = new Environment();
  153. $environment->setType('test');
  154. // add environment url
  155. $url = new Url();
  156. $url->setUrl('duplicated.{host}');
  157. $url->setLanguage('fr');
  158. $url->setCountry('');
  159. $url->setSegment('');
  160. $url->setRedirect('');
  161. $url->setMain(true);
  162. $environment->addUrl($url);
  163. // add environment url
  164. $url = new Url();
  165. $url->setUrl('{host}/fr');
  166. $url->setLanguage('fr');
  167. $url->setCountry('');
  168. $url->setSegment('');
  169. $url->setRedirect('');
  170. $url->setMain(false);
  171. $environment->addUrl($url);
  172. // add environment url
  173. $url = new Url();
  174. $url->setUrl('duplicated.{host}/en');
  175. $url->setLanguage('en');
  176. $url->setCountry('');
  177. $url->setSegment('');
  178. $url->setRedirect('');
  179. $url->setMain(false);
  180. $environment->addUrl($url);
  181. $portal->addEnvironment($environment);
  182. // add environment
  183. $environment = new Environment();
  184. $environment->setType('dev');
  185. // add environment url
  186. $url = new Url();
  187. $url->setUrl('cms.preprod-croisiland.dev');
  188. $url->setLanguage('fr');
  189. $url->setCountry('');
  190. $url->setSegment('');
  191. $url->setRedirect('');
  192. $url->setMain(true);
  193. $environment->addUrl($url);
  194. // add environment url
  195. $url = new Url();
  196. $url->setUrl('cms.preprod-croisiland.dev/fr');
  197. $url->setLanguage('fr');
  198. $url->setCountry('');
  199. $url->setSegment('');
  200. $url->setRedirect('');
  201. $url->setMain(false);
  202. $environment->addUrl($url);
  203. // add environment url
  204. $url = new Url();
  205. $url->setUrl('cms.preprod-croisiland.dev/en');
  206. $url->setLanguage('en');
  207. $url->setCountry('');
  208. $url->setSegment('');
  209. $url->setRedirect('');
  210. $url->setMain(false);
  211. $environment->addUrl($url);
  212. // add environment url
  213. $url = new Url();
  214. $url->setUrl('{host}');
  215. $url->setLanguage('fr');
  216. $url->setCountry('');
  217. $url->setSegment('');
  218. $url->setRedirect('');
  219. $url->setMain(false);
  220. $environment->addUrl($url);
  221. // add environment url
  222. $url = new Url();
  223. $url->setUrl('{host}/fr');
  224. $url->setLanguage('fr');
  225. $url->setCountry('');
  226. $url->setSegment('');
  227. $url->setRedirect('');
  228. $url->setMain(false);
  229. $environment->addUrl($url);
  230. // add environment url
  231. $url = new Url();
  232. $url->setUrl('sulu-envdev.local');
  233. $url->setLanguage('fr');
  234. $url->setCountry('');
  235. $url->setSegment('');
  236. $url->setRedirect('');
  237. $url->setMain(false);
  238. $environment->addUrl($url);
  239. // add environment url
  240. $url = new Url();
  241. $url->setUrl('sulu-envdev.local/fr');
  242. $url->setLanguage('fr');
  243. $url->setCountry('');
  244. $url->setSegment('');
  245. $url->setRedirect('');
  246. $url->setMain(false);
  247. $environment->addUrl($url);
  248. // add environment url
  249. $url = new Url();
  250. $url->setUrl('sulu.local.nip.io');
  251. $url->setLanguage('fr');
  252. $url->setCountry('');
  253. $url->setSegment('');
  254. $url->setRedirect('');
  255. $url->setMain(false);
  256. $environment->addUrl($url);
  257. // add environment url
  258. $url = new Url();
  259. $url->setUrl('sulu.local.nip.io/fr');
  260. $url->setLanguage('fr');
  261. $url->setCountry('');
  262. $url->setSegment('');
  263. $url->setRedirect('');
  264. $url->setMain(false);
  265. $environment->addUrl($url);
  266. // add environment url
  267. $url = new Url();
  268. $url->setUrl('sulu-envdev.local/en');
  269. $url->setLanguage('en');
  270. $url->setCountry('');
  271. $url->setSegment('');
  272. $url->setRedirect('');
  273. $url->setMain(false);
  274. $environment->addUrl($url);
  275. // add environment url
  276. $url = new Url();
  277. $url->setUrl('{host}/en');
  278. $url->setLanguage('en');
  279. $url->setCountry('');
  280. $url->setSegment('');
  281. $url->setRedirect('');
  282. $url->setMain(false);
  283. $environment->addUrl($url);
  284. $portal->addEnvironment($environment);
  285. if (isset($portalRefs['duplicated.croisiland'])) {
  286. throw new \InvalidArgumentException('Portal with key "duplicated.croisiland" already exists in webspace "' . $portalRefs['duplicated.croisiland']->getWebspace()->getKey() . '" and conflicts with webspace "duplicated". Portal keys must be unique across all webspaces.');
  287. }
  288. $portalRefs['duplicated.croisiland'] = $portal;
  289. $webspace->addPortal($portal);
  290. $webspaceRefs['duplicated'] = $webspace;
  291. // new webspace
  292. $webspace = new Webspace();
  293. $webspace->setKey('hello');
  294. $webspace->setName("hello");
  295. // add localization to webspace
  296. $localization0 = new Localization('fr', '');
  297. $localization0->setShadow('');
  298. $localization0->setDefault(true);
  299. $localization0->setXDefault('');
  300. $localizationRefs['hello_fr'] = $localization0;
  301. $webspace->addLocalization($localization0);
  302. // add localization to webspace
  303. $localization0 = new Localization('en', '');
  304. $localization0->setShadow('');
  305. $localization0->setDefault(false);
  306. $localization0->setXDefault('');
  307. $localizationRefs['hello_en'] = $localization0;
  308. $webspace->addLocalization($localization0);
  309. // add theme
  310. $webspace->addTemplate('search', 'search/search');
  311. $webspace->addTemplate('error', 'error/error');
  312. $webspace->addTemplate('error-404', 'error/error-404');
  313. $webspace->addDefaultTemplate('page', 'default');
  314. $webspace->addDefaultTemplate('home', 'default');
  315. $webspace->addExcludedTemplate('partner_login');
  316. // add navigation
  317. $navigation = new Navigation();
  318. $navigation->addContext(new NavigationContext('main', array(
  319. 'title' => array(
  320. 'fr' => 'Navigation principale',
  321. 'en' => 'Main Navigation',
  322. )
  323. ,
  324. )
  325. ));
  326. $navigation->addContext(new NavigationContext('footer', array(
  327. 'title' => array(
  328. 'en' => 'Footer Navigation',
  329. 'fr' => 'Navigation du pied de page',
  330. )
  331. ,
  332. )
  333. ));
  334. $webspace->setNavigation($navigation);
  335. $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  336. // new portal
  337. $portal = new Portal();
  338. $portal->setName('hello.croisiland.com');
  339. $portal->setKey('hello.croisiland');
  340. $portal->setWebspace($webspace);
  341. // add localization
  342. $localization = new Localization('fr', '');
  343. $localization->setDefault('1');
  344. $localization->setXDefault('');
  345. $portal->addLocalization($localization);
  346. // add localization
  347. $localization = new Localization('en', '');
  348. $localization->setDefault('');
  349. $localization->setXDefault('');
  350. $portal->addLocalization($localization);
  351. // add environment
  352. $environment = new Environment();
  353. $environment->setType('prod');
  354. // add environment url
  355. $url = new Url();
  356. $url->setUrl('hello.{host}');
  357. $url->setLanguage('fr');
  358. $url->setCountry('');
  359. $url->setSegment('');
  360. $url->setRedirect('');
  361. $url->setMain(true);
  362. $environment->addUrl($url);
  363. // add environment url
  364. $url = new Url();
  365. $url->setUrl('{host}/fr');
  366. $url->setLanguage('fr');
  367. $url->setCountry('');
  368. $url->setSegment('');
  369. $url->setRedirect('');
  370. $url->setMain(false);
  371. $environment->addUrl($url);
  372. // add environment url
  373. $url = new Url();
  374. $url->setUrl('hello.{host}/en');
  375. $url->setLanguage('en');
  376. $url->setCountry('');
  377. $url->setSegment('');
  378. $url->setRedirect('');
  379. $url->setMain(false);
  380. $environment->addUrl($url);
  381. $portal->addEnvironment($environment);
  382. // add environment
  383. $environment = new Environment();
  384. $environment->setType('stage');
  385. // add environment url
  386. $url = new Url();
  387. $url->setUrl('hello.{host}');
  388. $url->setLanguage('fr');
  389. $url->setCountry('');
  390. $url->setSegment('');
  391. $url->setRedirect('');
  392. $url->setMain(true);
  393. $environment->addUrl($url);
  394. // add environment url
  395. $url = new Url();
  396. $url->setUrl('{host}/fr');
  397. $url->setLanguage('fr');
  398. $url->setCountry('');
  399. $url->setSegment('');
  400. $url->setRedirect('');
  401. $url->setMain(false);
  402. $environment->addUrl($url);
  403. // add environment url
  404. $url = new Url();
  405. $url->setUrl('hello.{host}/en');
  406. $url->setLanguage('en');
  407. $url->setCountry('');
  408. $url->setSegment('');
  409. $url->setRedirect('');
  410. $url->setMain(false);
  411. $environment->addUrl($url);
  412. $portal->addEnvironment($environment);
  413. // add environment
  414. $environment = new Environment();
  415. $environment->setType('test');
  416. // add environment url
  417. $url = new Url();
  418. $url->setUrl('hello.{host}');
  419. $url->setLanguage('fr');
  420. $url->setCountry('');
  421. $url->setSegment('');
  422. $url->setRedirect('');
  423. $url->setMain(true);
  424. $environment->addUrl($url);
  425. // add environment url
  426. $url = new Url();
  427. $url->setUrl('{host}/fr');
  428. $url->setLanguage('fr');
  429. $url->setCountry('');
  430. $url->setSegment('');
  431. $url->setRedirect('');
  432. $url->setMain(false);
  433. $environment->addUrl($url);
  434. // add environment url
  435. $url = new Url();
  436. $url->setUrl('hello.{host}/en');
  437. $url->setLanguage('en');
  438. $url->setCountry('');
  439. $url->setSegment('');
  440. $url->setRedirect('');
  441. $url->setMain(false);
  442. $environment->addUrl($url);
  443. $portal->addEnvironment($environment);
  444. // add environment
  445. $environment = new Environment();
  446. $environment->setType('dev');
  447. // add environment url
  448. $url = new Url();
  449. $url->setUrl('cms.preprod-croisiland.dev');
  450. $url->setLanguage('fr');
  451. $url->setCountry('');
  452. $url->setSegment('');
  453. $url->setRedirect('');
  454. $url->setMain(true);
  455. $environment->addUrl($url);
  456. // add environment url
  457. $url = new Url();
  458. $url->setUrl('cms.preprod-croisiland.dev/fr');
  459. $url->setLanguage('fr');
  460. $url->setCountry('');
  461. $url->setSegment('');
  462. $url->setRedirect('');
  463. $url->setMain(false);
  464. $environment->addUrl($url);
  465. // add environment url
  466. $url = new Url();
  467. $url->setUrl('cms.preprod-croisiland.dev/en');
  468. $url->setLanguage('en');
  469. $url->setCountry('');
  470. $url->setSegment('');
  471. $url->setRedirect('');
  472. $url->setMain(false);
  473. $environment->addUrl($url);
  474. // add environment url
  475. $url = new Url();
  476. $url->setUrl('{host}');
  477. $url->setLanguage('fr');
  478. $url->setCountry('');
  479. $url->setSegment('');
  480. $url->setRedirect('');
  481. $url->setMain(false);
  482. $environment->addUrl($url);
  483. // add environment url
  484. $url = new Url();
  485. $url->setUrl('{host}/fr');
  486. $url->setLanguage('fr');
  487. $url->setCountry('');
  488. $url->setSegment('');
  489. $url->setRedirect('');
  490. $url->setMain(false);
  491. $environment->addUrl($url);
  492. // add environment url
  493. $url = new Url();
  494. $url->setUrl('sulu-envdev.local');
  495. $url->setLanguage('fr');
  496. $url->setCountry('');
  497. $url->setSegment('');
  498. $url->setRedirect('');
  499. $url->setMain(false);
  500. $environment->addUrl($url);
  501. // add environment url
  502. $url = new Url();
  503. $url->setUrl('sulu-envdev.local/fr');
  504. $url->setLanguage('fr');
  505. $url->setCountry('');
  506. $url->setSegment('');
  507. $url->setRedirect('');
  508. $url->setMain(false);
  509. $environment->addUrl($url);
  510. // add environment url
  511. $url = new Url();
  512. $url->setUrl('sulu.local.nip.io');
  513. $url->setLanguage('fr');
  514. $url->setCountry('');
  515. $url->setSegment('');
  516. $url->setRedirect('');
  517. $url->setMain(false);
  518. $environment->addUrl($url);
  519. // add environment url
  520. $url = new Url();
  521. $url->setUrl('sulu.local.nip.io/fr');
  522. $url->setLanguage('fr');
  523. $url->setCountry('');
  524. $url->setSegment('');
  525. $url->setRedirect('');
  526. $url->setMain(false);
  527. $environment->addUrl($url);
  528. // add environment url
  529. $url = new Url();
  530. $url->setUrl('sulu-envdev.local/en');
  531. $url->setLanguage('en');
  532. $url->setCountry('');
  533. $url->setSegment('');
  534. $url->setRedirect('');
  535. $url->setMain(false);
  536. $environment->addUrl($url);
  537. // add environment url
  538. $url = new Url();
  539. $url->setUrl('{host}/en');
  540. $url->setLanguage('en');
  541. $url->setCountry('');
  542. $url->setSegment('');
  543. $url->setRedirect('');
  544. $url->setMain(false);
  545. $environment->addUrl($url);
  546. $portal->addEnvironment($environment);
  547. if (isset($portalRefs['hello.croisiland'])) {
  548. throw new \InvalidArgumentException('Portal with key "hello.croisiland" already exists in webspace "' . $portalRefs['hello.croisiland']->getWebspace()->getKey() . '" and conflicts with webspace "hello". Portal keys must be unique across all webspaces.');
  549. }
  550. $portalRefs['hello.croisiland'] = $portal;
  551. $webspace->addPortal($portal);
  552. $webspaceRefs['hello'] = $webspace;
  553. // new webspace
  554. $webspace = new Webspace();
  555. $webspace->setKey('main-website');
  556. $webspace->setName("Site public Croisiland");
  557. // add localization to webspace
  558. $localization0 = new Localization('fr', '');
  559. $localization0->setShadow('');
  560. $localization0->setDefault(true);
  561. $localization0->setXDefault('');
  562. $localizationRefs['main-website_fr'] = $localization0;
  563. $webspace->addLocalization($localization0);
  564. // add localization to webspace
  565. $localization0 = new Localization('en', '');
  566. $localization0->setShadow('');
  567. $localization0->setDefault(false);
  568. $localization0->setXDefault('');
  569. $localizationRefs['main-website_en'] = $localization0;
  570. $webspace->addLocalization($localization0);
  571. // add theme
  572. $webspace->addTemplate('search', 'search/search');
  573. $webspace->addTemplate('error', 'error/error');
  574. $webspace->addTemplate('error-404', 'error/error-404');
  575. $webspace->addDefaultTemplate('page', 'default');
  576. $webspace->addDefaultTemplate('home', 'default');
  577. $webspace->addExcludedTemplate('partner_login');
  578. // add navigation
  579. $navigation = new Navigation();
  580. $navigation->addContext(new NavigationContext('main', array(
  581. 'title' => array(
  582. 'fr' => 'Navigation principale',
  583. 'en' => 'Main Navigation',
  584. )
  585. ,
  586. )
  587. ));
  588. $navigation->addContext(new NavigationContext('footer', array(
  589. 'title' => array(
  590. 'en' => 'Footer Navigation',
  591. 'fr' => 'Navigation du pied de page',
  592. )
  593. ,
  594. )
  595. ));
  596. $webspace->setNavigation($navigation);
  597. $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  598. // new portal
  599. $portal = new Portal();
  600. $portal->setName('croisiland.com');
  601. $portal->setKey('croisiland');
  602. $portal->setWebspace($webspace);
  603. // add localization
  604. $localization = new Localization('fr', '');
  605. $localization->setDefault('1');
  606. $localization->setXDefault('');
  607. $portal->addLocalization($localization);
  608. // add localization
  609. $localization = new Localization('en', '');
  610. $localization->setDefault('');
  611. $localization->setXDefault('');
  612. $portal->addLocalization($localization);
  613. // add environment
  614. $environment = new Environment();
  615. $environment->setType('prod');
  616. // add environment url
  617. $url = new Url();
  618. $url->setUrl('{host}');
  619. $url->setLanguage('fr');
  620. $url->setCountry('');
  621. $url->setSegment('');
  622. $url->setRedirect('');
  623. $url->setMain(true);
  624. $environment->addUrl($url);
  625. // add environment url
  626. $url = new Url();
  627. $url->setUrl('{host}/fr');
  628. $url->setLanguage('fr');
  629. $url->setCountry('');
  630. $url->setSegment('');
  631. $url->setRedirect('');
  632. $url->setMain(false);
  633. $environment->addUrl($url);
  634. // add environment url
  635. $url = new Url();
  636. $url->setUrl('{host}/en');
  637. $url->setLanguage('en');
  638. $url->setCountry('');
  639. $url->setSegment('');
  640. $url->setRedirect('');
  641. $url->setMain(false);
  642. $environment->addUrl($url);
  643. $portal->addEnvironment($environment);
  644. // add environment
  645. $environment = new Environment();
  646. $environment->setType('stage');
  647. // add environment url
  648. $url = new Url();
  649. $url->setUrl('{host}');
  650. $url->setLanguage('fr');
  651. $url->setCountry('');
  652. $url->setSegment('');
  653. $url->setRedirect('');
  654. $url->setMain(true);
  655. $environment->addUrl($url);
  656. // add environment url
  657. $url = new Url();
  658. $url->setUrl('{host}/fr');
  659. $url->setLanguage('fr');
  660. $url->setCountry('');
  661. $url->setSegment('');
  662. $url->setRedirect('');
  663. $url->setMain(false);
  664. $environment->addUrl($url);
  665. // add environment url
  666. $url = new Url();
  667. $url->setUrl('{host}/en');
  668. $url->setLanguage('en');
  669. $url->setCountry('');
  670. $url->setSegment('');
  671. $url->setRedirect('');
  672. $url->setMain(false);
  673. $environment->addUrl($url);
  674. $portal->addEnvironment($environment);
  675. // add environment
  676. $environment = new Environment();
  677. $environment->setType('test');
  678. // add environment url
  679. $url = new Url();
  680. $url->setUrl('{host}');
  681. $url->setLanguage('fr');
  682. $url->setCountry('');
  683. $url->setSegment('');
  684. $url->setRedirect('');
  685. $url->setMain(true);
  686. $environment->addUrl($url);
  687. // add environment url
  688. $url = new Url();
  689. $url->setUrl('{host}/fr');
  690. $url->setLanguage('fr');
  691. $url->setCountry('');
  692. $url->setSegment('');
  693. $url->setRedirect('');
  694. $url->setMain(false);
  695. $environment->addUrl($url);
  696. // add environment url
  697. $url = new Url();
  698. $url->setUrl('{host}/en');
  699. $url->setLanguage('en');
  700. $url->setCountry('');
  701. $url->setSegment('');
  702. $url->setRedirect('');
  703. $url->setMain(false);
  704. $environment->addUrl($url);
  705. $portal->addEnvironment($environment);
  706. // add environment
  707. $environment = new Environment();
  708. $environment->setType('dev');
  709. // add environment url
  710. $url = new Url();
  711. $url->setUrl('cms.preprod-croisiland.dev');
  712. $url->setLanguage('fr');
  713. $url->setCountry('');
  714. $url->setSegment('');
  715. $url->setRedirect('');
  716. $url->setMain(true);
  717. $environment->addUrl($url);
  718. // add environment url
  719. $url = new Url();
  720. $url->setUrl('cms.preprod-croisiland.dev/fr');
  721. $url->setLanguage('fr');
  722. $url->setCountry('');
  723. $url->setSegment('');
  724. $url->setRedirect('');
  725. $url->setMain(false);
  726. $environment->addUrl($url);
  727. // add environment url
  728. $url = new Url();
  729. $url->setUrl('cms.preprod-croisiland.dev/en');
  730. $url->setLanguage('en');
  731. $url->setCountry('');
  732. $url->setSegment('');
  733. $url->setRedirect('');
  734. $url->setMain(false);
  735. $environment->addUrl($url);
  736. // add environment url
  737. $url = new Url();
  738. $url->setUrl('{host}');
  739. $url->setLanguage('fr');
  740. $url->setCountry('');
  741. $url->setSegment('');
  742. $url->setRedirect('');
  743. $url->setMain(false);
  744. $environment->addUrl($url);
  745. // add environment url
  746. $url = new Url();
  747. $url->setUrl('{host}/fr');
  748. $url->setLanguage('fr');
  749. $url->setCountry('');
  750. $url->setSegment('');
  751. $url->setRedirect('');
  752. $url->setMain(false);
  753. $environment->addUrl($url);
  754. // add environment url
  755. $url = new Url();
  756. $url->setUrl('sulu-envdev.local');
  757. $url->setLanguage('fr');
  758. $url->setCountry('');
  759. $url->setSegment('');
  760. $url->setRedirect('');
  761. $url->setMain(false);
  762. $environment->addUrl($url);
  763. // add environment url
  764. $url = new Url();
  765. $url->setUrl('sulu-envdev.local/fr');
  766. $url->setLanguage('fr');
  767. $url->setCountry('');
  768. $url->setSegment('');
  769. $url->setRedirect('');
  770. $url->setMain(false);
  771. $environment->addUrl($url);
  772. // add environment url
  773. $url = new Url();
  774. $url->setUrl('sulu.local.nip.io');
  775. $url->setLanguage('fr');
  776. $url->setCountry('');
  777. $url->setSegment('');
  778. $url->setRedirect('');
  779. $url->setMain(false);
  780. $environment->addUrl($url);
  781. // add environment url
  782. $url = new Url();
  783. $url->setUrl('sulu.local.nip.io/fr');
  784. $url->setLanguage('fr');
  785. $url->setCountry('');
  786. $url->setSegment('');
  787. $url->setRedirect('');
  788. $url->setMain(false);
  789. $environment->addUrl($url);
  790. // add environment url
  791. $url = new Url();
  792. $url->setUrl('sulu-envdev.local/en');
  793. $url->setLanguage('en');
  794. $url->setCountry('');
  795. $url->setSegment('');
  796. $url->setRedirect('');
  797. $url->setMain(false);
  798. $environment->addUrl($url);
  799. // add environment url
  800. $url = new Url();
  801. $url->setUrl('{host}/en');
  802. $url->setLanguage('en');
  803. $url->setCountry('');
  804. $url->setSegment('');
  805. $url->setRedirect('');
  806. $url->setMain(false);
  807. $environment->addUrl($url);
  808. $portal->addEnvironment($environment);
  809. if (isset($portalRefs['croisiland'])) {
  810. throw new \InvalidArgumentException('Portal with key "croisiland" already exists in webspace "' . $portalRefs['croisiland']->getWebspace()->getKey() . '" and conflicts with webspace "main-website". Portal keys must be unique across all webspaces.');
  811. }
  812. $portalRefs['croisiland'] = $portal;
  813. $webspace->addPortal($portal);
  814. $webspaceRefs['main-website'] = $webspace;
  815. // new webspace
  816. $webspace = new Webspace();
  817. $webspace->setKey('test');
  818. $webspace->setName("test");
  819. // add localization to webspace
  820. $localization0 = new Localization('fr', '');
  821. $localization0->setShadow('');
  822. $localization0->setDefault(true);
  823. $localization0->setXDefault('');
  824. $localizationRefs['test_fr'] = $localization0;
  825. $webspace->addLocalization($localization0);
  826. // add localization to webspace
  827. $localization0 = new Localization('en', '');
  828. $localization0->setShadow('');
  829. $localization0->setDefault(false);
  830. $localization0->setXDefault('');
  831. $localizationRefs['test_en'] = $localization0;
  832. $webspace->addLocalization($localization0);
  833. // add theme
  834. $webspace->addTemplate('search', 'search/search');
  835. $webspace->addTemplate('error', 'error/error');
  836. $webspace->addTemplate('error-404', 'error/error-404');
  837. $webspace->addDefaultTemplate('page', 'default');
  838. $webspace->addDefaultTemplate('home', 'default');
  839. $webspace->addExcludedTemplate('partner_login');
  840. // add navigation
  841. $navigation = new Navigation();
  842. $navigation->addContext(new NavigationContext('main', array(
  843. 'title' => array(
  844. 'fr' => 'Navigation principale',
  845. 'en' => 'Main Navigation',
  846. )
  847. ,
  848. )
  849. ));
  850. $navigation->addContext(new NavigationContext('footer', array(
  851. 'title' => array(
  852. 'en' => 'Footer Navigation',
  853. 'fr' => 'Navigation du pied de page',
  854. )
  855. ,
  856. )
  857. ));
  858. $webspace->setNavigation($navigation);
  859. $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  860. // new portal
  861. $portal = new Portal();
  862. $portal->setName('test.croisiland.com');
  863. $portal->setKey('test.croisiland');
  864. $portal->setWebspace($webspace);
  865. // add localization
  866. $localization = new Localization('fr', '');
  867. $localization->setDefault('1');
  868. $localization->setXDefault('');
  869. $portal->addLocalization($localization);
  870. // add localization
  871. $localization = new Localization('en', '');
  872. $localization->setDefault('');
  873. $localization->setXDefault('');
  874. $portal->addLocalization($localization);
  875. // add environment
  876. $environment = new Environment();
  877. $environment->setType('prod');
  878. // add environment url
  879. $url = new Url();
  880. $url->setUrl('test.{host}');
  881. $url->setLanguage('fr');
  882. $url->setCountry('');
  883. $url->setSegment('');
  884. $url->setRedirect('');
  885. $url->setMain(true);
  886. $environment->addUrl($url);
  887. // add environment url
  888. $url = new Url();
  889. $url->setUrl('{host}/fr');
  890. $url->setLanguage('fr');
  891. $url->setCountry('');
  892. $url->setSegment('');
  893. $url->setRedirect('');
  894. $url->setMain(false);
  895. $environment->addUrl($url);
  896. // add environment url
  897. $url = new Url();
  898. $url->setUrl('test.{host}/en');
  899. $url->setLanguage('en');
  900. $url->setCountry('');
  901. $url->setSegment('');
  902. $url->setRedirect('');
  903. $url->setMain(false);
  904. $environment->addUrl($url);
  905. $portal->addEnvironment($environment);
  906. // add environment
  907. $environment = new Environment();
  908. $environment->setType('stage');
  909. // add environment url
  910. $url = new Url();
  911. $url->setUrl('test.{host}');
  912. $url->setLanguage('fr');
  913. $url->setCountry('');
  914. $url->setSegment('');
  915. $url->setRedirect('');
  916. $url->setMain(true);
  917. $environment->addUrl($url);
  918. // add environment url
  919. $url = new Url();
  920. $url->setUrl('{host}/fr');
  921. $url->setLanguage('fr');
  922. $url->setCountry('');
  923. $url->setSegment('');
  924. $url->setRedirect('');
  925. $url->setMain(false);
  926. $environment->addUrl($url);
  927. // add environment url
  928. $url = new Url();
  929. $url->setUrl('test.{host}/en');
  930. $url->setLanguage('en');
  931. $url->setCountry('');
  932. $url->setSegment('');
  933. $url->setRedirect('');
  934. $url->setMain(false);
  935. $environment->addUrl($url);
  936. $portal->addEnvironment($environment);
  937. // add environment
  938. $environment = new Environment();
  939. $environment->setType('test');
  940. // add environment url
  941. $url = new Url();
  942. $url->setUrl('test.{host}');
  943. $url->setLanguage('fr');
  944. $url->setCountry('');
  945. $url->setSegment('');
  946. $url->setRedirect('');
  947. $url->setMain(true);
  948. $environment->addUrl($url);
  949. // add environment url
  950. $url = new Url();
  951. $url->setUrl('{host}/fr');
  952. $url->setLanguage('fr');
  953. $url->setCountry('');
  954. $url->setSegment('');
  955. $url->setRedirect('');
  956. $url->setMain(false);
  957. $environment->addUrl($url);
  958. // add environment url
  959. $url = new Url();
  960. $url->setUrl('test.{host}/en');
  961. $url->setLanguage('en');
  962. $url->setCountry('');
  963. $url->setSegment('');
  964. $url->setRedirect('');
  965. $url->setMain(false);
  966. $environment->addUrl($url);
  967. $portal->addEnvironment($environment);
  968. // add environment
  969. $environment = new Environment();
  970. $environment->setType('dev');
  971. // add environment url
  972. $url = new Url();
  973. $url->setUrl('cms.preprod-croisiland.dev');
  974. $url->setLanguage('fr');
  975. $url->setCountry('');
  976. $url->setSegment('');
  977. $url->setRedirect('');
  978. $url->setMain(true);
  979. $environment->addUrl($url);
  980. // add environment url
  981. $url = new Url();
  982. $url->setUrl('cms.preprod-croisiland.dev/fr');
  983. $url->setLanguage('fr');
  984. $url->setCountry('');
  985. $url->setSegment('');
  986. $url->setRedirect('');
  987. $url->setMain(false);
  988. $environment->addUrl($url);
  989. // add environment url
  990. $url = new Url();
  991. $url->setUrl('cms.preprod-croisiland.dev/en');
  992. $url->setLanguage('en');
  993. $url->setCountry('');
  994. $url->setSegment('');
  995. $url->setRedirect('');
  996. $url->setMain(false);
  997. $environment->addUrl($url);
  998. // add environment url
  999. $url = new Url();
  1000. $url->setUrl('test.sulu-envdev.local');
  1001. $url->setLanguage('fr');
  1002. $url->setCountry('');
  1003. $url->setSegment('');
  1004. $url->setRedirect('');
  1005. $url->setMain(false);
  1006. $environment->addUrl($url);
  1007. // add environment url
  1008. $url = new Url();
  1009. $url->setUrl('test.sulu-envdev.local/fr');
  1010. $url->setLanguage('fr');
  1011. $url->setCountry('');
  1012. $url->setSegment('');
  1013. $url->setRedirect('');
  1014. $url->setMain(false);
  1015. $environment->addUrl($url);
  1016. // add environment url
  1017. $url = new Url();
  1018. $url->setUrl('test.sulu-envdev.local/en');
  1019. $url->setLanguage('en');
  1020. $url->setCountry('');
  1021. $url->setSegment('');
  1022. $url->setRedirect('');
  1023. $url->setMain(false);
  1024. $environment->addUrl($url);
  1025. $portal->addEnvironment($environment);
  1026. if (isset($portalRefs['test.croisiland'])) {
  1027. throw new \InvalidArgumentException('Portal with key "test.croisiland" already exists in webspace "' . $portalRefs['test.croisiland']->getWebspace()->getKey() . '" and conflicts with webspace "test". Portal keys must be unique across all webspaces.');
  1028. }
  1029. $portalRefs['test.croisiland'] = $portal;
  1030. $webspace->addPortal($portal);
  1031. $webspaceRefs['test'] = $webspace;
  1032. $portalInformationRefs['prod']['duplicated.{host}/en'] = new PortalInformation(
  1033. 1,
  1034. $webspaceRefs['duplicated'],
  1035. $portalRefs['duplicated.croisiland'],
  1036. $localizationRefs['duplicated_en'],
  1037. 'duplicated.{host}/en',
  1038. null,
  1039. null,
  1040. false,
  1041. 'duplicated.{host}/en',
  1042. 5
  1043. );
  1044. $portalInformationRefs['prod']['duplicated.{host}'] = new PortalInformation(
  1045. 1,
  1046. $webspaceRefs['duplicated'],
  1047. $portalRefs['duplicated.croisiland'],
  1048. $localizationRefs['duplicated_fr'],
  1049. 'duplicated.{host}',
  1050. null,
  1051. null,
  1052. true,
  1053. 'duplicated.{host}',
  1054. 5
  1055. );
  1056. $portalInformationRefs['prod']['hello.{host}/en'] = new PortalInformation(
  1057. 1,
  1058. $webspaceRefs['hello'],
  1059. $portalRefs['hello.croisiland'],
  1060. $localizationRefs['hello_en'],
  1061. 'hello.{host}/en',
  1062. null,
  1063. null,
  1064. false,
  1065. 'hello.{host}/en',
  1066. 5
  1067. );
  1068. $portalInformationRefs['prod']['test.{host}/en'] = new PortalInformation(
  1069. 1,
  1070. $webspaceRefs['test'],
  1071. $portalRefs['test.croisiland'],
  1072. $localizationRefs['test_en'],
  1073. 'test.{host}/en',
  1074. null,
  1075. null,
  1076. false,
  1077. 'test.{host}/en',
  1078. 5
  1079. );
  1080. $portalInformationRefs['prod']['hello.{host}'] = new PortalInformation(
  1081. 1,
  1082. $webspaceRefs['hello'],
  1083. $portalRefs['hello.croisiland'],
  1084. $localizationRefs['hello_fr'],
  1085. 'hello.{host}',
  1086. null,
  1087. null,
  1088. true,
  1089. 'hello.{host}',
  1090. 5
  1091. );
  1092. $portalInformationRefs['prod']['test.{host}'] = new PortalInformation(
  1093. 1,
  1094. $webspaceRefs['test'],
  1095. $portalRefs['test.croisiland'],
  1096. $localizationRefs['test_fr'],
  1097. 'test.{host}',
  1098. null,
  1099. null,
  1100. true,
  1101. 'test.{host}',
  1102. 5
  1103. );
  1104. $portalInformationRefs['prod']['{host}/fr'] = new PortalInformation(
  1105. 1,
  1106. $webspaceRefs['test'],
  1107. $portalRefs['test.croisiland'],
  1108. $localizationRefs['test_fr'],
  1109. '{host}/fr',
  1110. null,
  1111. null,
  1112. false,
  1113. '{host}/fr',
  1114. 5
  1115. );
  1116. $portalInformationRefs['prod']['{host}/en'] = new PortalInformation(
  1117. 1,
  1118. $webspaceRefs['main-website'],
  1119. $portalRefs['croisiland'],
  1120. $localizationRefs['main-website_en'],
  1121. '{host}/en',
  1122. null,
  1123. null,
  1124. false,
  1125. '{host}/en',
  1126. 5
  1127. );
  1128. $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  1129. 1,
  1130. $webspaceRefs['main-website'],
  1131. $portalRefs['croisiland'],
  1132. $localizationRefs['main-website_fr'],
  1133. '{host}',
  1134. null,
  1135. null,
  1136. true,
  1137. '{host}',
  1138. 5
  1139. );
  1140. $portalInformationRefs['stage']['duplicated.{host}/en'] = new PortalInformation(
  1141. 1,
  1142. $webspaceRefs['duplicated'],
  1143. $portalRefs['duplicated.croisiland'],
  1144. $localizationRefs['duplicated_en'],
  1145. 'duplicated.{host}/en',
  1146. null,
  1147. null,
  1148. false,
  1149. 'duplicated.{host}/en',
  1150. 5
  1151. );
  1152. $portalInformationRefs['stage']['duplicated.{host}'] = new PortalInformation(
  1153. 1,
  1154. $webspaceRefs['duplicated'],
  1155. $portalRefs['duplicated.croisiland'],
  1156. $localizationRefs['duplicated_fr'],
  1157. 'duplicated.{host}',
  1158. null,
  1159. null,
  1160. true,
  1161. 'duplicated.{host}',
  1162. 5
  1163. );
  1164. $portalInformationRefs['stage']['hello.{host}/en'] = new PortalInformation(
  1165. 1,
  1166. $webspaceRefs['hello'],
  1167. $portalRefs['hello.croisiland'],
  1168. $localizationRefs['hello_en'],
  1169. 'hello.{host}/en',
  1170. null,
  1171. null,
  1172. false,
  1173. 'hello.{host}/en',
  1174. 5
  1175. );
  1176. $portalInformationRefs['stage']['test.{host}/en'] = new PortalInformation(
  1177. 1,
  1178. $webspaceRefs['test'],
  1179. $portalRefs['test.croisiland'],
  1180. $localizationRefs['test_en'],
  1181. 'test.{host}/en',
  1182. null,
  1183. null,
  1184. false,
  1185. 'test.{host}/en',
  1186. 5
  1187. );
  1188. $portalInformationRefs['stage']['hello.{host}'] = new PortalInformation(
  1189. 1,
  1190. $webspaceRefs['hello'],
  1191. $portalRefs['hello.croisiland'],
  1192. $localizationRefs['hello_fr'],
  1193. 'hello.{host}',
  1194. null,
  1195. null,
  1196. true,
  1197. 'hello.{host}',
  1198. 5
  1199. );
  1200. $portalInformationRefs['stage']['test.{host}'] = new PortalInformation(
  1201. 1,
  1202. $webspaceRefs['test'],
  1203. $portalRefs['test.croisiland'],
  1204. $localizationRefs['test_fr'],
  1205. 'test.{host}',
  1206. null,
  1207. null,
  1208. true,
  1209. 'test.{host}',
  1210. 5
  1211. );
  1212. $portalInformationRefs['stage']['{host}/fr'] = new PortalInformation(
  1213. 1,
  1214. $webspaceRefs['test'],
  1215. $portalRefs['test.croisiland'],
  1216. $localizationRefs['test_fr'],
  1217. '{host}/fr',
  1218. null,
  1219. null,
  1220. false,
  1221. '{host}/fr',
  1222. 5
  1223. );
  1224. $portalInformationRefs['stage']['{host}/en'] = new PortalInformation(
  1225. 1,
  1226. $webspaceRefs['main-website'],
  1227. $portalRefs['croisiland'],
  1228. $localizationRefs['main-website_en'],
  1229. '{host}/en',
  1230. null,
  1231. null,
  1232. false,
  1233. '{host}/en',
  1234. 5
  1235. );
  1236. $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  1237. 1,
  1238. $webspaceRefs['main-website'],
  1239. $portalRefs['croisiland'],
  1240. $localizationRefs['main-website_fr'],
  1241. '{host}',
  1242. null,
  1243. null,
  1244. true,
  1245. '{host}',
  1246. 5
  1247. );
  1248. $portalInformationRefs['test']['duplicated.{host}/en'] = new PortalInformation(
  1249. 1,
  1250. $webspaceRefs['duplicated'],
  1251. $portalRefs['duplicated.croisiland'],
  1252. $localizationRefs['duplicated_en'],
  1253. 'duplicated.{host}/en',
  1254. null,
  1255. null,
  1256. false,
  1257. 'duplicated.{host}/en',
  1258. 5
  1259. );
  1260. $portalInformationRefs['test']['duplicated.{host}'] = new PortalInformation(
  1261. 1,
  1262. $webspaceRefs['duplicated'],
  1263. $portalRefs['duplicated.croisiland'],
  1264. $localizationRefs['duplicated_fr'],
  1265. 'duplicated.{host}',
  1266. null,
  1267. null,
  1268. true,
  1269. 'duplicated.{host}',
  1270. 5
  1271. );
  1272. $portalInformationRefs['test']['hello.{host}/en'] = new PortalInformation(
  1273. 1,
  1274. $webspaceRefs['hello'],
  1275. $portalRefs['hello.croisiland'],
  1276. $localizationRefs['hello_en'],
  1277. 'hello.{host}/en',
  1278. null,
  1279. null,
  1280. false,
  1281. 'hello.{host}/en',
  1282. 5
  1283. );
  1284. $portalInformationRefs['test']['test.{host}/en'] = new PortalInformation(
  1285. 1,
  1286. $webspaceRefs['test'],
  1287. $portalRefs['test.croisiland'],
  1288. $localizationRefs['test_en'],
  1289. 'test.{host}/en',
  1290. null,
  1291. null,
  1292. false,
  1293. 'test.{host}/en',
  1294. 5
  1295. );
  1296. $portalInformationRefs['test']['hello.{host}'] = new PortalInformation(
  1297. 1,
  1298. $webspaceRefs['hello'],
  1299. $portalRefs['hello.croisiland'],
  1300. $localizationRefs['hello_fr'],
  1301. 'hello.{host}',
  1302. null,
  1303. null,
  1304. true,
  1305. 'hello.{host}',
  1306. 5
  1307. );
  1308. $portalInformationRefs['test']['test.{host}'] = new PortalInformation(
  1309. 1,
  1310. $webspaceRefs['test'],
  1311. $portalRefs['test.croisiland'],
  1312. $localizationRefs['test_fr'],
  1313. 'test.{host}',
  1314. null,
  1315. null,
  1316. true,
  1317. 'test.{host}',
  1318. 5
  1319. );
  1320. $portalInformationRefs['test']['{host}/fr'] = new PortalInformation(
  1321. 1,
  1322. $webspaceRefs['test'],
  1323. $portalRefs['test.croisiland'],
  1324. $localizationRefs['test_fr'],
  1325. '{host}/fr',
  1326. null,
  1327. null,
  1328. false,
  1329. '{host}/fr',
  1330. 5
  1331. );
  1332. $portalInformationRefs['test']['{host}/en'] = new PortalInformation(
  1333. 1,
  1334. $webspaceRefs['main-website'],
  1335. $portalRefs['croisiland'],
  1336. $localizationRefs['main-website_en'],
  1337. '{host}/en',
  1338. null,
  1339. null,
  1340. false,
  1341. '{host}/en',
  1342. 5
  1343. );
  1344. $portalInformationRefs['test']['{host}'] = new PortalInformation(
  1345. 1,
  1346. $webspaceRefs['main-website'],
  1347. $portalRefs['croisiland'],
  1348. $localizationRefs['main-website_fr'],
  1349. '{host}',
  1350. null,
  1351. null,
  1352. true,
  1353. '{host}',
  1354. 5
  1355. );
  1356. $portalInformationRefs['dev']['cms.preprod-croisiland.dev/fr'] = new PortalInformation(
  1357. 1,
  1358. $webspaceRefs['test'],
  1359. $portalRefs['test.croisiland'],
  1360. $localizationRefs['test_fr'],
  1361. 'cms.preprod-croisiland.dev/fr',
  1362. null,
  1363. null,
  1364. false,
  1365. 'cms.preprod-croisiland.dev/fr',
  1366. 10
  1367. );
  1368. $portalInformationRefs['dev']['cms.preprod-croisiland.dev/en'] = new PortalInformation(
  1369. 1,
  1370. $webspaceRefs['test'],
  1371. $portalRefs['test.croisiland'],
  1372. $localizationRefs['test_en'],
  1373. 'cms.preprod-croisiland.dev/en',
  1374. null,
  1375. null,
  1376. false,
  1377. 'cms.preprod-croisiland.dev/en',
  1378. 10
  1379. );
  1380. $portalInformationRefs['dev']['cms.preprod-croisiland.dev'] = new PortalInformation(
  1381. 1,
  1382. $webspaceRefs['test'],
  1383. $portalRefs['test.croisiland'],
  1384. $localizationRefs['test_fr'],
  1385. 'cms.preprod-croisiland.dev',
  1386. null,
  1387. null,
  1388. true,
  1389. 'cms.preprod-croisiland.dev',
  1390. 10
  1391. );
  1392. $portalInformationRefs['dev']['test.sulu-envdev.local/fr'] = new PortalInformation(
  1393. 1,
  1394. $webspaceRefs['test'],
  1395. $portalRefs['test.croisiland'],
  1396. $localizationRefs['test_fr'],
  1397. 'test.sulu-envdev.local/fr',
  1398. null,
  1399. null,
  1400. false,
  1401. 'test.sulu-envdev.local/fr',
  1402. 10
  1403. );
  1404. $portalInformationRefs['dev']['test.sulu-envdev.local/en'] = new PortalInformation(
  1405. 1,
  1406. $webspaceRefs['test'],
  1407. $portalRefs['test.croisiland'],
  1408. $localizationRefs['test_en'],
  1409. 'test.sulu-envdev.local/en',
  1410. null,
  1411. null,
  1412. false,
  1413. 'test.sulu-envdev.local/en',
  1414. 10
  1415. );
  1416. $portalInformationRefs['dev']['test.sulu-envdev.local'] = new PortalInformation(
  1417. 1,
  1418. $webspaceRefs['test'],
  1419. $portalRefs['test.croisiland'],
  1420. $localizationRefs['test_fr'],
  1421. 'test.sulu-envdev.local',
  1422. null,
  1423. null,
  1424. false,
  1425. 'test.sulu-envdev.local',
  1426. 10
  1427. );
  1428. $portalInformationRefs['dev']['sulu-envdev.local/fr'] = new PortalInformation(
  1429. 1,
  1430. $webspaceRefs['main-website'],
  1431. $portalRefs['croisiland'],
  1432. $localizationRefs['main-website_fr'],
  1433. 'sulu-envdev.local/fr',
  1434. null,
  1435. null,
  1436. false,
  1437. 'sulu-envdev.local/fr',
  1438. 10
  1439. );
  1440. $portalInformationRefs['dev']['sulu.local.nip.io/fr'] = new PortalInformation(
  1441. 1,
  1442. $webspaceRefs['main-website'],
  1443. $portalRefs['croisiland'],
  1444. $localizationRefs['main-website_fr'],
  1445. 'sulu.local.nip.io/fr',
  1446. null,
  1447. null,
  1448. false,
  1449. 'sulu.local.nip.io/fr',
  1450. 10
  1451. );
  1452. $portalInformationRefs['dev']['sulu-envdev.local/en'] = new PortalInformation(
  1453. 1,
  1454. $webspaceRefs['main-website'],
  1455. $portalRefs['croisiland'],
  1456. $localizationRefs['main-website_en'],
  1457. 'sulu-envdev.local/en',
  1458. null,
  1459. null,
  1460. false,
  1461. 'sulu-envdev.local/en',
  1462. 10
  1463. );
  1464. $portalInformationRefs['dev']['sulu-envdev.local'] = new PortalInformation(
  1465. 1,
  1466. $webspaceRefs['main-website'],
  1467. $portalRefs['croisiland'],
  1468. $localizationRefs['main-website_fr'],
  1469. 'sulu-envdev.local',
  1470. null,
  1471. null,
  1472. false,
  1473. 'sulu-envdev.local',
  1474. 10
  1475. );
  1476. $portalInformationRefs['dev']['sulu.local.nip.io'] = new PortalInformation(
  1477. 1,
  1478. $webspaceRefs['main-website'],
  1479. $portalRefs['croisiland'],
  1480. $localizationRefs['main-website_fr'],
  1481. 'sulu.local.nip.io',
  1482. null,
  1483. null,
  1484. false,
  1485. 'sulu.local.nip.io',
  1486. 10
  1487. );
  1488. $portalInformationRefs['dev']['{host}/fr'] = new PortalInformation(
  1489. 1,
  1490. $webspaceRefs['main-website'],
  1491. $portalRefs['croisiland'],
  1492. $localizationRefs['main-website_fr'],
  1493. '{host}/fr',
  1494. null,
  1495. null,
  1496. false,
  1497. '{host}/fr',
  1498. 5
  1499. );
  1500. $portalInformationRefs['dev']['{host}/en'] = new PortalInformation(
  1501. 1,
  1502. $webspaceRefs['main-website'],
  1503. $portalRefs['croisiland'],
  1504. $localizationRefs['main-website_en'],
  1505. '{host}/en',
  1506. null,
  1507. null,
  1508. false,
  1509. '{host}/en',
  1510. 5
  1511. );
  1512. $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  1513. 1,
  1514. $webspaceRefs['main-website'],
  1515. $portalRefs['croisiland'],
  1516. $localizationRefs['main-website_fr'],
  1517. '{host}',
  1518. null,
  1519. null,
  1520. false,
  1521. '{host}',
  1522. 5
  1523. );
  1524. $this->setWebspaces($webspaceRefs);
  1525. $this->setPortals($portalRefs);
  1526. $this->setPortalInformations($portalInformationRefs);
  1527. }
  1528. }