Did you forget a "use" statement for another namespace?

Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Annotation\Route; class MiseAJourCSVController extends AbstractController { ``` Chemin du fichier "vendor\sunra\php-simple-html-dom-parser

1
Lister & subscriber

Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\ExceptionEvent; use Symfony\Component\HttpKernel\KernelEvents; class ExceptionSubscriber implements EventSubscriberInterface { public static function getSubscribedEvents() { // return the subscribed events, their methods and priorities

4
Symfony2 ManyToMany widget sous forme d'une table selectable

Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class PatientType extends AbstractType { /** * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilderInterface $builder, array

2
API Platform - DataPersister - Impossible de créer un nouveau User

Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Serializer\Annotation\Groups; use Symfony\Component\Serializer\Annotation\SerializedName; /** * @ApiResource( * collectionOperations={ * "get", * "post"={ * "security"="is_granted('ROLE_ADMIN')" * }, * }, * itemOperations={ * "get", * "put"={"security

0
Kreait Firebase / verifyIdToken avec APP_ENV=dev

Symfony. Pour cela, j'utilise la librairie **Kreait\Firebase** que j'ai déjà fait fonctionner dans d'autres environnements. Il existe un buddle symfony dédié que j'ai installé via : ```composer

0
problème JWT - swagger

Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' App\Entity\User: 'auto' enable_authenticator_manager: true # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider providers: # used to reload user from session & other features (e.g. switch_user

0
Symfony2

Symfony\Component\Form\FormTypeInterface", "array" given Voici le code:

2
Aide installation WYSIWYG

Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\Extension\Core\Type\TextType; use Symfony\Component\Form\Extension\Core\Type\TextareaType; class ArticleType extends AbstractType { public

2
Formulaire d'inscription avec plusieurs entity

inscription ### Ce que j'obtiens Warning: count(): Parameter must be an array or an object that implements Countable in C:\xamp\htdocs\Scolarite1.0\vendor\symfony\symfony\src\Symfony\Component\Form\Form.php line 704

2
Security : authentification impossible

Symfony\Component\Routing\Annotation\Route; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\Security\Http\Authentication\AuthenticationUtils; class SecurityController extends AbstractController { /** * @Route("/login", name="login") */ public function login(AuthenticationUtils

1