Yep - i've search an answer and spend several hours with google. But trouble still actual
class IndexController extends Controller\CommonController
{
private $container;
public function __construct(Container $container) {
$this->container = $container;
}
in config.yml
shop.website.index_controller:
class: %shop.website.index_controller%
parent: shop.common.common_controller
arguments: [@service_container]
and
Catchable Fatal Error: Argument 1 passed to Shop\WebSiteBundle\Controller\IndexController::__construct() must implement interface Symfony\Component\DependencyInjection\ContainerInterface, none given, called in I:\sf2\www\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver.php on line 77 and defined in I:\sf2\www\src\Shop\WebSiteBundle\Controller\IndexController.php line 13
Can anybody explain where is the error?
Configuration in yml / annotaions please ( Cause different types for configuring make me crazy )
Thanks in advance
P.S> Updated code id
services:
shop.common.common_controller:
abstract: true
class: %shop.common.common_controller%
arguments: ["@templating"]
and
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
class CommonController
{
protected $templating;
public function __construct(EngineInterface $templating)
{
$this->templating = $templating;
}
the same result (