aboutsummaryrefslogtreecommitdiff
path: root/src/installation.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/installation.php')
-rw-r--r--src/installation.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/installation.php b/src/installation.php
index 5adb697..dd3aa35 100644
--- a/src/installation.php
+++ b/src/installation.php
@@ -7,6 +7,7 @@ use App\Entity\Page;
7use App\Entity\Node; 7use App\Entity\Node;
8use App\Entity\NodeData; 8use App\Entity\NodeData;
9use App\Entity\Image; 9use App\Entity\Image;
10use App\Entity\Presentation;
10use Doctrine\Common\Collections\ArrayCollection; 11use Doctrine\Common\Collections\ArrayCollection;
11use Doctrine\ORM\EntityManager; 12use Doctrine\ORM\EntityManager;
12 13
@@ -116,6 +117,10 @@ function makeStartPage(EntityManager $entityManager){
116 $head_new_page = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'new_page', 'foot'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL); 117 $head_new_page = new Node('head', NULL, ['css_array' => ['body', 'head', 'nav', 'new_page', 'foot'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL);
117 $bloc_new_page = new Node('new_page', NULL, [], 1, $main, $new_page, NULL); 118 $bloc_new_page = new Node('new_page', NULL, [], 1, $main, $new_page, NULL);
118 119
120 /* -- table presentation -- */
121 $list = new Presentation('list');
122 $grid = new Presentation('grid');
123
119 /* -- table image -- */ 124 /* -- table image -- */
120 // paramètres: file_name, file_path, file_path_mini, mime_type, alt 125 // paramètres: file_name, file_path, file_path_mini, mime_type, alt
121 $favicon = new Image("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon"); 126 $favicon = new Image("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon");
@@ -162,6 +167,10 @@ function makeStartPage(EntityManager $entityManager){
162 $entityManager->persist($bloc_edit_menu); 167 $entityManager->persist($bloc_edit_menu);
163 $entityManager->persist($head_new_page); 168 $entityManager->persist($head_new_page);
164 $entityManager->persist($bloc_new_page); 169 $entityManager->persist($bloc_new_page);
170
171 /* -- table presentation -- */
172 $entityManager->persist($list);
173 $entityManager->persist($grid);
165 174
166 /* -- table image -- */ 175 /* -- table image -- */
167 $entityManager->persist($favicon); 176 $entityManager->persist($favicon);