-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from dutekvejin/improvement/strict-typing
Missing strict types
- Loading branch information
Showing
6 changed files
with
14 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
|
||
use Aura\Di\Container; | ||
use Aura\Di\ContainerBuilder; | ||
use Interop\Container\ContainerInterface; | ||
|
||
/** | ||
* @author Nikola Posa <[email protected]> | ||
|
@@ -25,12 +26,12 @@ final class AuraDiFactory extends AbstractFactory | |
*/ | ||
protected $container; | ||
|
||
protected function createContainer() | ||
protected function createContainer() : ContainerInterface | ||
{ | ||
return (new ContainerBuilder())->newInstance(); | ||
} | ||
|
||
protected function configure($container) | ||
protected function configure(ContainerInterface $container) | ||
{ | ||
$this->container = $container; | ||
|
||
|
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 |
---|---|---|
|
@@ -12,19 +12,20 @@ | |
|
||
namespace Phoundation\Di\Container\Factory; | ||
|
||
use Interop\Container\ContainerInterface; | ||
use Zend\ServiceManager\ServiceManager; | ||
|
||
/** | ||
* @author Nikola Posa <[email protected]> | ||
*/ | ||
final class ZendServiceManagerFactory extends AbstractFactory | ||
{ | ||
protected function createContainer() | ||
protected function createContainer() : ContainerInterface | ||
{ | ||
return new ServiceManager(); | ||
} | ||
|
||
protected function configure($container) | ||
protected function configure(ContainerInterface $container) | ||
{ | ||
/* @var $container ServiceManager */ | ||
|
||
|