Development

- Added dependency injection support.
- Added php-di composer dependency.
- Added `ClassLoader` class.
- Added `IClassLoader` interface.
- Added unit-tests for dependency injection.
- Updated documentation to reflect new features.
This commit is contained in:
Simon Sessingø
2018-03-29 21:16:02 +02:00
parent cca2f5cb88
commit af2ac6031d
17 changed files with 382 additions and 68 deletions
+2 -2
View File
@@ -214,7 +214,7 @@ class InputHandler
* @param array ...$methods
* @return IInputItem|null
*/
public function get(string $index, ...$methods) : ?IInputItem
public function get(string $index, ...$methods): ?IInputItem
{
$element = null;
@@ -241,7 +241,7 @@ class InputHandler
* @param array ...$methods
* @return string
*/
public function getValue(string $index, ?string $defaultValue = null, ...$methods) : ?string
public function getValue(string $index, ?string $defaultValue = null, ...$methods): ?string
{
$input = $this->get($index, $methods);