Skip to content

Commit 94fdacf

Browse files
committed
Added ParameterMissingException
1 parent 68233df commit 94fdacf

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Diff for: src/Exceptions/ParameterMissingException.php

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
namespace Ioc\Exceptions\Exceptions;
3+
4+
class ParameterMissingException extends \RuntimeException {
5+
}

Diff for: src/MethodInvoker.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Ioc;
33

44
use Ioc\Exceptions\DefinitionNotFoundException;
5+
use Ioc\Exceptions\Exceptions\ParameterMissingException;
56

67
interface MethodInvoker {
78
/**
@@ -14,6 +15,7 @@ interface MethodInvoker {
1415
* @param callable $callable
1516
* @param array $arguments Must be an array were the keys match to the Variable-Names of the __construct'ors parameters.
1617
* @throws DefinitionNotFoundException
18+
* @throws ParameterMissingException
1719
* @return mixed
1820
*/
1921
public function invoke($callable, array $arguments = array());

Diff for: src/ObjectFactory.php

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Ioc;
33

44
use Ioc\Exceptions\DefinitionNotFoundException;
5+
use Ioc\Exceptions\Exceptions\ParameterMissingException;
56

67
interface ObjectFactory {
78
/**
@@ -12,6 +13,7 @@ interface ObjectFactory {
1213
* @param string $className Must be an fully qualified class-name.
1314
* @param array $arguments Must be an array were the keys match to the Variable-Names of the __construct'ors parameters.
1415
* @throws DefinitionNotFoundException
16+
* @throws ParameterMissingException
1517
* @return mixed
1618
*/
1719
public function create($className, array $arguments = array());

0 commit comments

Comments
 (0)