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 | // Services to add to the container. |
||
7 | "services" => [ |
||
8 | "session" => [ |
||
9 | "shared" => true, |
||
10 | "active" => true, |
||
11 | "callback" => function () { |
||
12 | $obj = new \Anax\Session\SessionConfigurable(); |
||
13 | $obj->configure("test/session.php"); |
||
14 | $obj->start(); |
||
15 | return $obj; |
||
16 | } |
||
17 | ], |
||
18 | "errorController" => [ |
||
19 | "shared" => true, |
||
20 | "callback" => function () { |
||
21 | $obj = new \Marcusgsta\Page\ErrorController(); |
||
22 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
23 | return $obj; |
||
24 | } |
||
25 | ], |
||
26 | "debugController" => [ |
||
27 | "shared" => true, |
||
28 | "callback" => function () { |
||
29 | $obj = new \Marcusgsta\Page\DebugController(); |
||
30 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
31 | return $obj; |
||
32 | } |
||
33 | ], |
||
34 | "flatFileContentController" => [ |
||
35 | "shared" => true, |
||
36 | "callback" => function () { |
||
37 | $obj = new \Marcusgsta\Page\FlatFileContentController(); |
||
38 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
39 | return $obj; |
||
40 | } |
||
41 | ], |
||
42 | "pageRender" => [ |
||
43 | "shared" => true, |
||
44 | "callback" => function () { |
||
45 | $obj = new \Marcusgsta\Page\PageRender(); |
||
46 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
47 | return $obj; |
||
48 | } |
||
49 | ], |
||
50 | "db" => [ |
||
51 | "shared" => true, |
||
52 | "callback" => function () { |
||
53 | $obj = new \Anax\Database\DatabaseQueryBuilder(); |
||
54 | $obj->configure("test/database-for-testing.php"); |
||
55 | return $obj; |
||
56 | } |
||
57 | ], |
||
58 | "commentController" => [ |
||
59 | "shared" => true, |
||
60 | "callback" => function () { |
||
61 | $comment = new \Marcusgsta\Comment\CommentController(); |
||
62 | $comment->setDI($this); |
||
0 ignored issues
–
show
|
|||
63 | return $comment; |
||
64 | } |
||
65 | ], |
||
66 | "userController" => [ |
||
67 | "shared" => true, |
||
68 | "callback" => function () { |
||
69 | $obj = new \Anax\User\UserController(); |
||
70 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
71 | return $obj; |
||
72 | } |
||
73 | ], |
||
74 | "logInController" => [ |
||
75 | "shared" => true, |
||
76 | "callback" => function () { |
||
77 | $obj = new \Anax\LogIn\LogInController(); |
||
78 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
79 | return $obj; |
||
80 | } |
||
81 | ], |
||
82 | "view" => [ |
||
83 | "shared" => true, |
||
84 | "callback" => function () { |
||
85 | $view = new \Anax\View\ViewCollection(); |
||
86 | $view->setDI($this); |
||
0 ignored issues
–
show
|
|||
87 | $view->configure("test/view.php"); |
||
88 | return $view; |
||
89 | }, |
||
90 | ], |
||
91 | "viewRenderFile" => [ |
||
92 | "shared" => true, |
||
93 | "callback" => function () { |
||
94 | $viewRender = new \Anax\View\ViewRenderFile2(); |
||
95 | $viewRender->setDI($this); |
||
0 ignored issues
–
show
|
|||
96 | return $viewRender; |
||
97 | } |
||
98 | ], |
||
99 | "request" => [ |
||
100 | "shared" => true, |
||
101 | "callback" => function () { |
||
102 | $request = new \Anax\Request\Request(); |
||
103 | $request->init(); |
||
104 | return $request; |
||
105 | }, |
||
106 | ], |
||
107 | "response" => [ |
||
108 | "shared" => true, |
||
109 | //"callback" => "\Anax\Response\Response", |
||
110 | "callback" => function () { |
||
111 | $obj = new \Anax\Response\ResponseUtility(); |
||
112 | $obj->setDI($this); |
||
0 ignored issues
–
show
|
|||
113 | return $obj; |
||
114 | } |
||
115 | ], |
||
116 | "url" => [ |
||
117 | "shared" => true, |
||
118 | "callback" => function () { |
||
119 | $url = new \Anax\Url\Url(); |
||
120 | $request = $this->get("request"); |
||
0 ignored issues
–
show
|
|||
121 | $url->setSiteUrl($request->getSiteUrl()); |
||
122 | $url->setBaseUrl($request->getBaseUrl()); |
||
123 | $url->setStaticSiteUrl($request->getSiteUrl()); |
||
124 | $url->setStaticBaseUrl($request->getBaseUrl()); |
||
125 | $url->setScriptName($request->getScriptName()); |
||
126 | $url->configure("test/url.php"); |
||
127 | $url->setDefaultsFromConfiguration(); |
||
128 | return $url; |
||
129 | } |
||
130 | ], |
||
131 | ], |
||
132 | ]; |
||
133 |
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.