Skip to content

[Insight] The Symfony Dependency Injection Container should not be passed as an argument - in Twig/…/LocaleSwitcherExtension.php, line 31 #154

@lunetics

Description

@lunetics

in Twig/Extension/LocaleSwitcherExtension.php, line 31

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

    /**
     * Constructor
     *
     * @param ContainerInterface $container
     */
    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
    }

    /**

Posted from SensioLabsInsight

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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