1 | <?php |
||
32 | class ApplicationWrapper |
||
33 | { |
||
34 | |||
35 | /** |
||
36 | * The wrapped application instance. |
||
37 | * |
||
38 | * @var \AppserverIo\Psr\Application\ApplicationInterface |
||
39 | */ |
||
40 | protected $application; |
||
41 | |||
42 | /** |
||
43 | * Injects the application instance we want to wrap. |
||
44 | * |
||
45 | * @param \AppserverIo\Psr\Application\ApplicationInterface $application The application instance we want to wrap |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | 1 | public function injectApplication(ApplicationInterface $application) |
|
53 | |||
54 | /** |
||
55 | * Returns the wrapped application instance. |
||
56 | * |
||
57 | * @return \AppserverIo\Psr\Application\ApplicationInterface |
||
58 | */ |
||
59 | 1 | public function getApplication() |
|
63 | |||
64 | /** |
||
65 | * Has been automatically invoked by the container after the application |
||
66 | * instance has been created. |
||
67 | * |
||
68 | * @return \AppserverIo\Psr\Application\ApplicationInterface The connected application |
||
69 | */ |
||
70 | public function connect() |
||
74 | |||
75 | /** |
||
76 | * Returns the application name (that has to be the class namespace, |
||
77 | * e. g. TechDivision\Example). |
||
78 | * |
||
79 | * @return string The application name |
||
80 | */ |
||
81 | 1 | public function getName() |
|
85 | |||
86 | /** |
||
87 | * Return's the applications servers base directory, which is |
||
88 | * /opt/appserver by default. |
||
89 | * |
||
90 | * @param string $directoryToAppend Directory to append before returning the base directory |
||
91 | * |
||
92 | * @return string The application server's base directory |
||
93 | */ |
||
94 | public function getBaseDirectory($directoryToAppend = null) |
||
98 | |||
99 | /** |
||
100 | * Returns the path to the web application. |
||
101 | * |
||
102 | * @return string The path to the web application |
||
103 | */ |
||
104 | public function getWebappPath() |
||
108 | |||
109 | /** |
||
110 | * Returns the absolute path to the applications base directory. |
||
111 | * |
||
112 | * @return string The app base directory |
||
113 | */ |
||
114 | public function getAppBase() |
||
118 | |||
119 | /** |
||
120 | * Returns the absolute path to the applications temporary directory. |
||
121 | * |
||
122 | * @return string The app temporary directory |
||
123 | */ |
||
124 | public function getTmpDir() |
||
128 | |||
129 | /** |
||
130 | * Returns the absolute path to the applications session directory. |
||
131 | * |
||
132 | * @return string The app session directory |
||
133 | */ |
||
134 | public function getSessionDir() |
||
138 | |||
139 | /** |
||
140 | * Returns the absolute path to the applications cache directory. |
||
141 | * |
||
142 | * @return string The app cache directory |
||
143 | */ |
||
144 | public function getCacheDir() |
||
148 | |||
149 | /** |
||
150 | * Injects the username the application should be executed with. |
||
151 | * |
||
152 | * @return string The username |
||
153 | */ |
||
154 | public function getUser() |
||
158 | |||
159 | /** |
||
160 | * Injects the groupname the application should be executed with. |
||
161 | * |
||
162 | * @return string The groupname |
||
163 | */ |
||
164 | public function getGroup() |
||
168 | |||
169 | /** |
||
170 | * Returns the umask the application should create files/directories with. |
||
171 | * |
||
172 | * @return string The umask |
||
173 | */ |
||
174 | public function getUmask() |
||
178 | } |
||
179 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.