Last active
September 7, 2015 07:46
-
-
Save geerteltink/1538f0168b20b1df8a4d to your computer and use it in GitHub Desktop.
Container-Interop wrapper for Pimple 3.0
This file contains hidden or 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
| <?php | |
| namespace Pimple; | |
| use Pimple\Container as Pimple; | |
| use Interop\Container\ContainerInterface; | |
| /** | |
| * ContainerInterface wrapper for Pimple 3.0 | |
| */ | |
| class PimpleContainer extends Pimple implements ContainerInterface | |
| { | |
| public function get($id) | |
| { | |
| return $this->offsetGet($id); | |
| } | |
| public function has($id) | |
| { | |
| return $this->offsetExists($id); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment