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(),
// ...
);
}