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.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
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" => "\Anax\Response\Response", |
||
20 | "callback" => function () { |
||
21 | $obj = new \Anax\Response\ResponseUtility(); |
||
22 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
23 | return $obj; |
||
24 | } |
||
25 | ], |
||
26 | "url" => [ |
||
27 | "shared" => true, |
||
28 | "callback" => function () { |
||
29 | $url = new \Anax\Url\Url(); |
||
30 | $request = $this->get("request"); |
||
0 ignored issues
–
show
|
|||
31 | $url->setSiteUrl($request->getSiteUrl()); |
||
32 | $url->setBaseUrl($request->getBaseUrl()); |
||
33 | $url->setStaticSiteUrl($request->getSiteUrl()); |
||
34 | $url->setStaticBaseUrl($request->getBaseUrl()); |
||
35 | $url->setScriptName($request->getScriptName()); |
||
36 | $url->configure("url.php"); |
||
37 | $url->setDefaultsFromConfiguration(); |
||
38 | return $url; |
||
39 | } |
||
40 | ], |
||
41 | "router" => [ |
||
42 | "shared" => true, |
||
43 | "callback" => function () { |
||
44 | $router = new \Anax\Route\Router(); |
||
45 | $router->setDI($this); |
||
0 ignored issues
–
show
|
|||
46 | $router->configure("route2.php"); |
||
47 | return $router; |
||
48 | } |
||
49 | ], |
||
50 | "view" => [ |
||
51 | "shared" => true, |
||
52 | "callback" => function () { |
||
53 | $view = new \Anax\View\ViewCollection(); |
||
54 | $view->setDI($this); |
||
0 ignored issues
–
show
|
|||
55 | $view->configure("view.php"); |
||
56 | return $view; |
||
57 | } |
||
58 | ], |
||
59 | "viewRenderFile" => [ |
||
60 | "shared" => true, |
||
61 | "callback" => function () { |
||
62 | $viewRender = new \Anax\View\ViewRenderFile2(); |
||
63 | $viewRender->setDI($this); |
||
0 ignored issues
–
show
|
|||
64 | return $viewRender; |
||
65 | } |
||
66 | ], |
||
67 | "session" => [ |
||
68 | "shared" => true, |
||
69 | "callback" => function () { |
||
70 | $session = new \Anax\Session\SessionConfigurable(); |
||
71 | $session->configure("session.php"); |
||
72 | $session->start(); |
||
73 | return $session; |
||
74 | } |
||
75 | ], |
||
76 | "textfilter" => [ |
||
77 | "shared" => true, |
||
78 | "callback" => "\Anax\TextFilter\TextFilter", |
||
79 | ], |
||
80 | "pageRender" => [ |
||
81 | "shared" => true, |
||
82 | "callback" => function () { |
||
83 | $obj = new \Anax\Page\PageRender(); |
||
84 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
85 | return $obj; |
||
86 | } |
||
87 | ], |
||
88 | "errorController" => [ |
||
89 | "shared" => true, |
||
90 | "callback" => function () { |
||
91 | $obj = new \Anax\Page\ErrorController(); |
||
92 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
93 | return $obj; |
||
94 | } |
||
95 | ], |
||
96 | "debugController" => [ |
||
97 | "shared" => true, |
||
98 | "callback" => function () { |
||
99 | $obj = new \Anax\Page\DebugController(); |
||
100 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
101 | return $obj; |
||
102 | } |
||
103 | ], |
||
104 | "flatFileContentController" => [ |
||
105 | "shared" => true, |
||
106 | "callback" => function () { |
||
107 | $obj = new \Anax\Page\FlatFileContentController(); |
||
108 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
109 | return $obj; |
||
110 | } |
||
111 | ], |
||
112 | "db" => [ |
||
113 | "shared" => true, |
||
114 | "callback" => function () { |
||
115 | $obj = new \Anax\Database\DatabaseQueryBuilder(); |
||
116 | $obj->configure("database.php"); |
||
117 | return $obj; |
||
118 | } |
||
119 | ], |
||
120 | "comments" => [ |
||
121 | "shared" => true, |
||
122 | "callback" => function () { |
||
123 | $comments = new \Anax\Comments\Comments(); |
||
124 | $comments->init($this->get("db")); |
||
0 ignored issues
–
show
|
|||
125 | return $comments; |
||
126 | } |
||
127 | ], |
||
128 | "commentsController" => [ |
||
129 | "shared" => false, |
||
130 | "callback" => function () { |
||
131 | $commentsController = new \Anax\Comments\CommentsController(); |
||
132 | $commentsController->setDI($this); |
||
0 ignored issues
–
show
|
|||
133 | $commentsController->init($this->get("db")); |
||
134 | $commentsController->inject($this->get("session")); |
||
135 | return $commentsController; |
||
136 | } |
||
137 | ], |
||
138 | ], |
||
139 | ]; |
||
140 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.