@@ -42,5 +42,8 @@ |
||
42 | 42 | */ |
43 | 43 | interface SingletonInterface |
44 | 44 | { |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
45 | 48 | public function __construct(Context $context); |
46 | 49 | } |
@@ -187,7 +187,7 @@ |
||
187 | 187 | /** |
188 | 188 | * Add a new route. |
189 | 189 | * |
190 | - * @param string|string[] $http_method The HTTP method, example: GET, HEAD, POST, PATCH, PUT, DELETE, CLI, etc. Can be an array of values. |
|
190 | + * @param string $http_method The HTTP method, example: GET, HEAD, POST, PATCH, PUT, DELETE, CLI, etc. Can be an array of values. |
|
191 | 191 | * @param string $route The route |
192 | 192 | * @param string $controller_class The Controller's class |
193 | 193 | * @param array $parameters The parameters to pass |
@@ -44,7 +44,8 @@ |
||
44 | 44 | { |
45 | 45 | private $context = null; |
46 | 46 | |
47 | - public function __construct(?BaseConfig $config = null) { |
|
47 | + public function __construct(?BaseConfig $config = null) |
|
48 | + { |
|
48 | 49 | $this->context = new Context($config); |
49 | 50 | } |
50 | 51 |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $path = realpath($path); |
54 | 54 | $path_len = strlen($path); |
55 | 55 | |
56 | - foreach (glob($path. \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
56 | + foreach (glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
57 | 57 | |
58 | 58 | if (is_dir($file)) { |
59 | 59 | $this->addVendor(substr($file, $path_len + 1), $file); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | { |
77 | 77 | $path_len = strlen($path); |
78 | 78 | |
79 | - foreach (glob($path. \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
79 | + foreach (glob($path . \DIRECTORY_SEPARATOR . '*', \GLOB_NOSORT | \GLOB_NOESCAPE) as $file) { |
|
80 | 80 | |
81 | 81 | if (is_dir($file)) { |
82 | 82 | $this->addModule($vendor_name, substr($file, $path_len + 1), $file); |