Skip to content

Commit

Permalink
Fix ContainerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
Chemaclass committed Apr 2, 2021
1 parent 797e0d4 commit ecffa9c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/Framework/Container/ContainerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@

namespace Gacela\Framework\Container;

use Psr\Container\ContainerInterface as PsrContainerInterface;
use Gacela\Framework\Container\Exception\ContainerKeyNotFoundException;

interface ContainerInterface extends PsrContainerInterface
interface ContainerInterface
{
/**
* @throws ContainerKeyNotFoundException
*
* @return mixed
*/
public function get(string $id);

public function has(string $id): bool;

/**
* @param mixed $service
*/
Expand Down

0 comments on commit ecffa9c

Please sign in to comment.