Skip to content

Instantly share code, notes, and snippets.

@maximecolin
Last active December 16, 2015 05:59
Show Gist options
  • Save maximecolin/5387883 to your computer and use it in GitHub Desktop.
Save maximecolin/5387883 to your computer and use it in GitHub Desktop.
<?php
class Container extends Pimple
{
public function __construct()
{
$values = [
'foobar' => function ($c) { /* do something */ },
'foobar.extended' => $this->extend('foobar', function ($o, $c) { /* do something */ })
];
parent::__construct($values);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment