@@ 84-93 (lines=10) @@ | ||
81 | ||
82 | $this->assistant->writeSection('Page successfully created', 'bg=green;fg=black'); |
|
83 | ||
84 | if (count($this->parentPages) == 0) { |
|
85 | $this->assistant->writeLine([ |
|
86 | 'To use this page you must first add the definition below to the <comment>getPossibleChildTypes</comment> funtion of the parent page:', |
|
87 | '<comment> [</comment>', |
|
88 | "<comment> 'name' => '" . $this->pageName . "',</comment>", |
|
89 | "<comment> 'class'=> '" . $this->bundle->getNamespace() . '\\Entity\\Pages\\' . $this->pageName . "'</comment>", |
|
90 | '<comment> ],</comment>', |
|
91 | '', |
|
92 | ]); |
|
93 | } |
|
94 | ||
95 | $this->assistant->writeLine([ |
|
96 | 'Make sure you update your database first before you use the page:', |
@@ 109-118 (lines=10) @@ | ||
106 | ||
107 | $this->assistant->writeSection('FormPage successfully created', 'bg=green;fg=black'); |
|
108 | ||
109 | if (count($this->parentPages) == 0) { |
|
110 | $this->assistant->writeLine([ |
|
111 | 'To use this page you must first add the definition below to the <comment>getPossibleChildTypes</comment> funtion of the parent page:', |
|
112 | '<comment> array(</comment>', |
|
113 | "<comment> 'name' => '" . $this->pageName . "',</comment>", |
|
114 | "<comment> 'class'=> '" . $this->bundle->getNamespace() . '\\Entity\\Pages\\' . $this->pageName . "'</comment>", |
|
115 | '<comment> ),</comment>', |
|
116 | '', |
|
117 | ]); |
|
118 | } |
|
119 | ||
120 | $this->assistant->writeLine([ |
|
121 | 'Make sure you update your database first before you use the page:', |