Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit 2a3f891

Browse files
Gianluca Arbezzanoweierophinney
authored andcommitted
Implement container-interop
This proposal is a simple implementation of ContainerInterface. Now we can use it in [zend-stratigility-skeleton](https://github.com/container-interop/container-interop) for example.
1 parent 4518451 commit 2a3f891

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
}
1414
},
1515
"require": {
16-
"php": ">=5.5"
16+
"php": ">=5.5",
17+
"container-interop/container-interop": "*"
1718
},
1819
"require-dev": {
1920
"zendframework/zend-di": "~2.5",

src/ServiceManager.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99

1010
namespace Zend\ServiceManager;
1111

12-
class ServiceManager implements ServiceLocatorInterface
12+
use Interop\Container\ContainerInterface;
13+
14+
class ServiceManager implements ServiceLocatorInterface, ContainerInterface
1315
{
1416
/**@#+
1517
* Constants

0 commit comments

Comments
 (0)