To begin, add the dependent bundles:
首先,添加功能包依赖:
php composer.phar require sonata-project/easy-extends-bundle
Next, be sure to enable the new bundles in your application kernel:
接下来,在您的应用程序内核启用该功能包:
<?php
// app/appkernel.php
public function registerBundles(){
return array(
// ...
newSonata\EasyExtendsBundle\SonataEasyExtendsBundle(),
// ...
);
}
本文转自 firehare 51CTO博客,原文链接:http://blog.51cto.com/firehare/1397159,如需转载请自行联系原作者