Open romazabelin opened 3 years ago
I have fixed it . We need to use use Runroom\SortableBehaviorBundle\Service\GedmoPositionHandler in constructor
public function __construct(
PropertyAccessorInterface $accessor,
GedmoPositionHandler $positionHandler,
Closed
Hi. I create custom controller for class PromoPageAdmin and set it in the settings in admin.yaml
And in controller
But I got this error
Cannot autowire service "App\Cms\Controller\Content\PromoPageController": argument "$positionHandler" of method "__construct()" references interface "Runroom\SortableBehaviorBundle\Service\PositionHandlerInterface" but no such service exists. You should maybe alias this interface to one of these existing services: "Runroom\SortableBehaviorBundle\Service\ORMPositionHandler", "Runroom\SortableBehaviorBundle\Service\GedmoPositionHandler".
I tried add in service.yaml:
Runroom\SortableBehaviorBundle\Service\PositionHandlerInterface:
but next error:
Cannot instantiate interface Runroom\SortableBehaviorBundle\Service\PositionHandlerInterface