| 1 | <?php |
||
| 17 | class ContextManager |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var \FSi\Bundle\AdminBundle\Admin\Context\ContextInterface[] |
||
| 21 | */ |
||
| 22 | protected $contexts; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextInterface[] $contexts |
||
| 26 | */ |
||
| 27 | public function __construct($contexts = array()) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param \FSi\Bundle\AdminBundle\Admin\Context\ContextInterface $builder |
||
| 38 | */ |
||
| 39 | public function addContext(ContextInterface $builder) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $route |
||
| 46 | * @param \FSi\Bundle\AdminBundle\Admin\Element $element |
||
| 47 | * @return \FSi\Bundle\AdminBundle\Admin\Context\ContextInterface|null |
||
| 48 | */ |
||
| 49 | public function createContext($route, Element $element) |
||
| 60 | } |
||
| 61 |