This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
1 | <?php |
||
2 | /** |
||
3 | * Configuration file for DI container. |
||
4 | */ |
||
5 | return [ |
||
6 | |||
7 | // Services to add to the container. |
||
8 | "services" => [ |
||
9 | "request" => [ |
||
10 | "shared" => true, |
||
11 | "callback" => function () { |
||
12 | $request = new \Anax\Request\Request(); |
||
13 | $request->init(); |
||
14 | return $request; |
||
15 | } |
||
16 | ], |
||
17 | "response" => [ |
||
18 | "shared" => true, |
||
19 | "callback" => function () { |
||
20 | $obj = new \Anax\Response\ResponseUtility(); |
||
21 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
22 | return $obj; |
||
23 | } |
||
24 | ], |
||
25 | "bookController" => [ |
||
26 | "shared" => true, |
||
27 | "callback" => function () { |
||
28 | $obj = new \Alvo\Book\BookController(); |
||
0 ignored issues
–
show
The type
Alvo\Book\BookController was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
29 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
30 | return $obj; |
||
31 | } |
||
32 | ], |
||
33 | "userController" => [ |
||
34 | "shared" => true, |
||
35 | "callback" => function () { |
||
36 | $obj = new \Alvo\User\UserController(); |
||
37 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
38 | $obj->init(); |
||
39 | return $obj; |
||
40 | } |
||
41 | ], |
||
42 | "user" => [ |
||
43 | "shared" => false, |
||
44 | "callback" => function () { |
||
45 | $obj = new \Alvo\User\User(); |
||
46 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
47 | $obj->setDb($this->get("db")); |
||
48 | return $obj; |
||
49 | } |
||
50 | ], |
||
51 | "url" => [ |
||
52 | "shared" => true, |
||
53 | "callback" => function () { |
||
54 | $url = new \Anax\Url\Url(); |
||
55 | $request = $this->get("request"); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
56 | $url->setSiteUrl($request->getSiteUrl()); |
||
57 | $url->setBaseUrl($request->getBaseUrl()); |
||
58 | $url->setStaticSiteUrl($request->getSiteUrl()); |
||
59 | $url->setStaticBaseUrl($request->getBaseUrl()); |
||
60 | $url->setScriptName($request->getScriptName()); |
||
61 | $url->configure("url.php"); |
||
62 | $url->setDefaultsFromConfiguration(); |
||
63 | return $url; |
||
64 | } |
||
65 | ], |
||
66 | "router" => [ |
||
67 | "shared" => true, |
||
68 | "callback" => function () { |
||
69 | $router = new \Anax\Route\Router(); |
||
70 | $router->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
71 | $router->configure("route.php"); |
||
72 | return $router; |
||
73 | } |
||
74 | ], |
||
75 | "view" => [ |
||
76 | "shared" => true, |
||
77 | "callback" => function () { |
||
78 | $view = new \Anax\View\ViewCollection(); |
||
79 | $view->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
80 | $view->configure("view.php"); |
||
81 | return $view; |
||
82 | } |
||
83 | ], |
||
84 | "viewRenderFile" => [ |
||
85 | "shared" => true, |
||
86 | "callback" => function () { |
||
87 | $viewRender = new \Anax\View\ViewRenderFile2(); |
||
88 | $viewRender->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
89 | return $viewRender; |
||
90 | } |
||
91 | ], |
||
92 | "session" => [ |
||
93 | "shared" => true, |
||
94 | "active" => true, |
||
95 | "callback" => function () { |
||
96 | $session = new \Anax\Session\SessionConfigurable(); |
||
97 | $session->configure("session.php"); |
||
98 | $session->start(); |
||
99 | return $session; |
||
100 | } |
||
101 | ], |
||
102 | "textfilter" => [ |
||
103 | "shared" => true, |
||
104 | "callback" => "\Anax\TextFilter\TextFilter", |
||
105 | ], |
||
106 | "errorController" => [ |
||
107 | "shared" => true, |
||
108 | "callback" => function () { |
||
109 | $obj = new \Anax\Page\ErrorController(); |
||
110 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
111 | return $obj; |
||
112 | } |
||
113 | ], |
||
114 | "debugController" => [ |
||
115 | "shared" => true, |
||
116 | "callback" => function () { |
||
117 | $obj = new \Anax\Page\DebugController(); |
||
118 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
119 | return $obj; |
||
120 | } |
||
121 | ], |
||
122 | "flatFileContentController" => [ |
||
123 | "shared" => true, |
||
124 | "callback" => function () { |
||
125 | $obj = new \Alvo\Page\FlatFileContentController(); |
||
126 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
127 | return $obj; |
||
128 | } |
||
129 | ], |
||
130 | "pageRender" => [ |
||
131 | "shared" => true, |
||
132 | "callback" => function () { |
||
133 | $obj = new \Alvo\Page\PageRender(); |
||
134 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
135 | return $obj; |
||
136 | } |
||
137 | ], |
||
138 | "db" => [ |
||
139 | "shared" => true, |
||
140 | "callback" => function () { |
||
141 | $obj = new \Anax\Database\DatabaseQueryBuilder(); |
||
142 | $obj->configure("database.php"); |
||
143 | return $obj; |
||
144 | } |
||
145 | ], |
||
146 | "comment" => [ |
||
147 | "shared" => true, |
||
148 | "callback" => function () { |
||
149 | $obj = new Alvo\Comment\CommentController(); |
||
150 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
151 | $obj->init(); |
||
152 | return $obj; |
||
153 | } |
||
154 | ], |
||
155 | "admin" => [ |
||
156 | "shared" => true, |
||
157 | "callback" => function () { |
||
158 | $obj = new Alvo\User\AdminController(); |
||
159 | $obj->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
160 | $obj->init(); |
||
161 | return $obj; |
||
162 | } |
||
163 | ], |
||
164 | "rem" => [ |
||
165 | "shared" => true, |
||
166 | "callback" => function () { |
||
167 | $rem = new \Anax\RemServer\RemServer(); |
||
0 ignored issues
–
show
The type
Anax\RemServer\RemServer was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
168 | $rem->configure("remserver.php"); |
||
169 | $rem->injectSession($this->get("session")); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
170 | return $rem; |
||
171 | } |
||
172 | ], |
||
173 | "remController" => [ |
||
174 | "shared" => false, |
||
175 | "callback" => function () { |
||
176 | $rem = new \Anax\RemServer\RemServerController(); |
||
0 ignored issues
–
show
The type
Anax\RemServer\RemServerController was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
177 | $rem->setDI($this); |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
|
|||
178 | return $rem; |
||
179 | } |
||
180 | ], |
||
181 | ], |
||
182 | ]; |
||
183 |