Skip to content

Instantly share code, notes, and snippets.

@geerteltink
Last active September 7, 2015 07:46
Show Gist options
  • Select an option

  • Save geerteltink/1538f0168b20b1df8a4d to your computer and use it in GitHub Desktop.

Select an option

Save geerteltink/1538f0168b20b1df8a4d to your computer and use it in GitHub Desktop.
Container-Interop wrapper for Pimple 3.0
<?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