Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
2,110 additions
and
1,022 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
<?php | ||
<?php declare(strict_types=1); | ||
|
||
namespace League\Container\Argument; | ||
|
||
use League\Container\ImmutableContainerAwareInterface; | ||
use League\Container\ContainerAwareInterface; | ||
use ReflectionFunctionAbstract; | ||
|
||
interface ArgumentResolverInterface extends ImmutableContainerAwareInterface | ||
interface ArgumentResolverInterface extends ContainerAwareInterface | ||
{ | ||
/** | ||
* Resolve an array of arguments to their concrete implementations. | ||
* | ||
* @param array $arguments | ||
* @param array $arguments | ||
* | ||
* @return array | ||
*/ | ||
public function resolveArguments(array $arguments); | ||
public function resolveArguments(array $arguments): array; | ||
|
||
/** | ||
* Resolves the correct arguments to be passed to a method. | ||
* | ||
* @param \ReflectionFunctionAbstract $method | ||
* @param array $args | ||
* @param \ReflectionFunctionAbstract $method | ||
* @param array $args | ||
* | ||
* @return array | ||
*/ | ||
public function reflectArguments(ReflectionFunctionAbstract $method, array $args = []); | ||
public function reflectArguments(ReflectionFunctionAbstract $method, array $args = []): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace League\Container\Argument; | ||
|
||
class ClassName implements ClassNameInterface | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected $value; | ||
|
||
/** | ||
* Construct. | ||
* | ||
* @param string $value | ||
*/ | ||
public function __construct(string $value) | ||
{ | ||
$this->value = $value; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function getValue(): string | ||
{ | ||
return $this->value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace League\Container\Argument; | ||
|
||
interface ClassNameInterface | ||
{ | ||
/** | ||
* Return the class name. | ||
* | ||
* @return string | ||
*/ | ||
public function getValue(): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
<?php declare(strict_types=1); | ||
|
||
namespace League\Container\Argument; | ||
|
||
|
Oops, something went wrong.