updated core to 1.7.15
This commit is contained in:
35
system/src/Grav/Framework/DI/Container.php
Normal file
35
system/src/Grav/Framework/DI/Container.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user