sylius ResourceController定义构造函数
最经看sylius,在ResourceBundle的ResourceController中自定义了一个构造函数。
public function __construct(Configuration $config)
{
$this->config = $config;
}
在symfony2的Controller中是不能自定义构造函数的。不知道他是如何实现的
最经看sylius,在ResourceBundle的ResourceController中自定义了一个构造函数。
public function __construct(Configuration $config)
{
$this->config = $config;
}
在symfony2的Controller中是不能自定义构造函数的。不知道他是如何实现的