Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.
This repository was archived by the owner on May 22, 2021. It is now read-only.

[Insight] The Symfony Dependency Injection Container should not be passed as an argument #1

Description

@LewisW

in Driver/YamlDriver.php, line 18

A Symfony dependency injection container has been found as an argument.

class YamlDriver implements ParametersStorageInterface {
    /* @var $container ContainerInterface */
    private $container;

    public function __construct(ContainerInterface $container) {
        $this->container = $container;
    }

    public function has($key) {
        return $this->container->hasParameter($key);

Posted from SensioLabsInsight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions