1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * @package Grav\Framework\DI
- *
- * @copyright Copyright (c) 2015 - 2021 Trilby Media, LLC. All rights reserved.
- * @license MIT License; see LICENSE file for details.
- */
- declare(strict_types=1);
- namespace Grav\Framework\DI;
- use Psr\Container\ContainerInterface;
- class Container extends \Pimple\Container implements ContainerInterface
- {
- /**
- * @param string $id
- * @return mixed
- */
- public function get($id)
- {
- return $this->offsetGet($id);
- }
- /**
- * @param string $id
- * @return bool
- */
- public function has($id): bool
- {
- return $this->offsetExists($id);
- }
- }
|