diff options
Diffstat (limited to 'src/installation.php')
-rw-r--r-- | src/installation.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/installation.php b/src/installation.php index dd0ca77..e0314a5 100644 --- a/src/installation.php +++ b/src/installation.php | |||
@@ -6,7 +6,7 @@ declare(strict_types=1); | |||
6 | use App\Entity\Page; | 6 | use App\Entity\Page; |
7 | use App\Entity\Node; | 7 | use App\Entity\Node; |
8 | use App\Entity\NodeData; | 8 | use App\Entity\NodeData; |
9 | use App\Entity\Image; | 9 | use App\Entity\Asset; |
10 | use Doctrine\Common\Collections\ArrayCollection; | 10 | use Doctrine\Common\Collections\ArrayCollection; |
11 | use Doctrine\ORM\EntityManager; | 11 | use Doctrine\ORM\EntityManager; |
12 | 12 | ||
@@ -116,13 +116,13 @@ function makeStartPage(EntityManager $entityManager){ | |||
116 | $head_new_page = new Node('head', ['css_array' => ['body', 'head', 'nav', 'new_page', 'foot'], 'js_array' => ['main', 'new_page']], 1, NULL, $new_page, NULL); | 116 | $head_new_page = new Node('head', ['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', [], 1, $main, $new_page, NULL); | 117 | $bloc_new_page = new Node('new_page', [], 1, $main, $new_page, NULL); |
118 | 118 | ||
119 | /* -- table image -- */ | 119 | /* -- table asset -- */ |
120 | // paramètres: file_name, file_path, file_path_mini, mime_type, alt | 120 | // 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"); | 121 | $favicon = new Asset("favicon48x48.png", NULL, "assets/favicon48x48.png", "image/png", "favicon"); |
122 | $facebook = new Image("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook"); | 122 | $facebook = new Asset("facebook.svg", NULL, "assets/facebook.svg", "image/svg+xml", "facebook"); |
123 | $instagram = new Image("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram"); | 123 | $instagram = new Asset("instagram.svg", NULL, "assets/instagram.svg", "image/svg+xml", "instagram"); |
124 | $linkedin = new Image("linkedin.svg", NULL, "assets/linkedin.svg", "image/svg+xml", "linkedin"); | 124 | $linkedin = new Asset("linkedin.svg", NULL, "assets/linkedin.svg", "image/svg+xml", "linkedin"); |
125 | $github = new Image("github.svg", NULL, "assets/github.svg", "image/svg+xml", "github"); | 125 | $github = new Asset("github.svg", NULL, "assets/github.svg", "image/svg+xml", "github"); |
126 | 126 | ||
127 | /* -- table node_data -- */ | 127 | /* -- table node_data -- */ |
128 | // paramètres: data, node, images | 128 | // paramètres: data, node, images |