You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
You can add a constructor to your UserDatatable class , If you insist on creating the service that's okay but with the default configuration a service is created automatically (Symfony 4)
use Symfony\Contracts\Translation\TranslatorInterface;
public function __construct(
AuthorizationCheckerInterface $authorizationChecker,
TokenStorageInterface $securityToken,
TranslatorInterface $translator,
RouterInterface $router,
EntityManagerInterface $em,
Environment $twig
)
{
parent::__construct($authorizationChecker, $securityToken, $translator, $router, $em, $twig);
}
As $translator has no type-hint anymore in the AbstractDatatable class, I get an error when defining my Datatable like that
This is a datatable.yaml file imported in services.yaml
Well it says that $translator has no type-hint and should be configured explicitally.
The text was updated successfully, but these errors were encountered: