File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Ioc \Exceptions \Exceptions ;
3
+
4
+ class ParameterMissingException extends \RuntimeException {
5
+ }
Original file line number Diff line number Diff line change 2
2
namespace Ioc ;
3
3
4
4
use Ioc \Exceptions \DefinitionNotFoundException ;
5
+ use Ioc \Exceptions \Exceptions \ParameterMissingException ;
5
6
6
7
interface MethodInvoker {
7
8
/**
@@ -14,6 +15,7 @@ interface MethodInvoker {
14
15
* @param callable $callable
15
16
* @param array $arguments Must be an array were the keys match to the Variable-Names of the __construct'ors parameters.
16
17
* @throws DefinitionNotFoundException
18
+ * @throws ParameterMissingException
17
19
* @return mixed
18
20
*/
19
21
public function invoke ($ callable , array $ arguments = array ());
Original file line number Diff line number Diff line change 2
2
namespace Ioc ;
3
3
4
4
use Ioc \Exceptions \DefinitionNotFoundException ;
5
+ use Ioc \Exceptions \Exceptions \ParameterMissingException ;
5
6
6
7
interface ObjectFactory {
7
8
/**
@@ -12,6 +13,7 @@ interface ObjectFactory {
12
13
* @param string $className Must be an fully qualified class-name.
13
14
* @param array $arguments Must be an array were the keys match to the Variable-Names of the __construct'ors parameters.
14
15
* @throws DefinitionNotFoundException
16
+ * @throws ParameterMissingException
15
17
* @return mixed
16
18
*/
17
19
public function create ($ className , array $ arguments = array ());
You can’t perform that action at this time.
0 commit comments