Grid/Export/Export.php
public function setContainer(ContainerInterface $container = null)
    {
        $this->container = $container;

        $this->twig = $this->container->get('twig');

        return $this;
    }
public function setContainer(ContainerInterface $container = null)
    {
        $this->container = $container;

        $this->twig = $this->container->get('twig');

        return $this;
    }
Sets the Container associated with this Controller.

@param ContainerInterface $container A ContainerInterface instance

@return \APY\DataGridBundle\Grid\Export\Export