1 | <?php |
||
15 | class Application |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $rootDir; |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $configPath; |
||
25 | /** |
||
26 | * @var \stdClass |
||
27 | */ |
||
28 | private $config; |
||
29 | /** |
||
30 | * @var \CloudControl\Cms\storage\Storage |
||
31 | */ |
||
32 | private $storage; |
||
33 | |||
34 | /** |
||
35 | * @var \CloudControl\Cms\cc\Request |
||
36 | */ |
||
37 | private $request; |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | private $matchedSitemapItems = array(); |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | private $applicationComponents = array(); |
||
48 | |||
49 | /** |
||
50 | * Application constructor. |
||
51 | * @param string $rootDir |
||
52 | * @param string $configPath |
||
53 | * @throws \Exception |
||
54 | */ |
||
55 | public function __construct($rootDir, $configPath) |
||
76 | |||
77 | /** |
||
78 | * Initialize the config |
||
79 | * |
||
80 | * @throws \Exception |
||
81 | */ |
||
82 | private function config() |
||
92 | |||
93 | /** |
||
94 | * Initialize the storage |
||
95 | */ |
||
96 | private function storage() |
||
100 | |||
101 | public function getAllApplicationComponentParameters() |
||
102 | { |
||
103 | $allParameters = array(); |
||
104 | foreach ($this->applicationComponents as $applicationComponent) { |
||
105 | $parameters = $applicationComponent->{'object'}->getParameters(); |
||
106 | $allParameters[] = $parameters; |
||
107 | } |
||
108 | return $allParameters; |
||
109 | } |
||
110 | |||
111 | public function unlockApplicationComponentParameters() |
||
118 | |||
119 | /** |
||
120 | * @return string |
||
121 | */ |
||
122 | public function getTemplateDir() |
||
126 | |||
127 | /** |
||
128 | * @return string |
||
129 | */ |
||
130 | public function getStorageDir() |
||
134 | |||
135 | public function getApplicationComponents() |
||
139 | |||
140 | /** |
||
141 | * @return string |
||
142 | */ |
||
143 | public function getRootDir() |
||
147 | |||
148 | private function setExceptionHandler() |
||
154 | |||
155 | private function urlMatching() |
||
161 | |||
162 | private function run() |
||
168 | |||
169 | private function render() |
||
175 | |||
176 | private function startServices() |
||
182 | |||
183 | public function addMatchedSitemapItem($matchedClone) |
||
187 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: