Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; class RegistrationConfirmListener implements EventSubscriberInterface { private $router; public function __construct(UrlGeneratorInterface $router) { $this->router = $router; } /** * {@inheritDoc
Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\HttpFoundation\Response; use ventenligneBundle\Entity\UtilisateursAdresses; use ventenligneBundle\Entity\Commandes; use ventenligneBundle\Entity\Produit; class CommandesController extends Controller { public function facture() { $em = $this
Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; use Symfony\Component\HttpFoundation\Response; class DefaultController extends Controller { /\*\* \* @Route("/wsdl") \* @Template() \*/ public
symfony sur github mais je n'arrive pas à lancer le serveur **Ce que je veux** avoir le projet symfony sur mon pc **Ce que j'obtiens** Symfony local serve
symfony configure:database --name=doctrine** En suivant un tutoriel sur symfony, je cherche à éxecuter la tâche configure:database ```php symfony configure:database --name=doctrine ``` J'obtiens le message d'erreur
symfony-app-dir": "app", "symfony-web-dir": "web", "incenteev-parameters": { "file": "app/config/parameters.yml" }, "branch-alias": { "dev-master": "2.3-dev" } } } Entourez votre code pour bien le mettre en forme ``` ### Ce que je veux
Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; use Symfony\Component\HttpFoundation\File\UploadedFile; use function PHPUnit\Framework\fileExists; class PicturesService { private $params; public function __construct(ParameterBagInterface $params) { $this->params = $params; } public function
Symfony for security reasons 'max' => 4096, ]), ], 'first_options'=>['label'=>'Password'], 'second_options'=>['label'=>'Repeat Password'], ]) ->add('telephone') ->add('file', \Symfony\Component\Form\Extension\Core\Type\FileType::class, array('label' => 'Fichier
Symfony\Bundle\FrameworkBundle\Controller\Controller; class MainController extends Controller { public function indexAction() { return $this->render('PMainBundle::index.html.twig'); } } ``` Ce template retourne pour l'instant que du HTML. Je débute totalement en dev symfony
Symfony\Component\Validator\Constraints as Assert; /** * @ORM\Table(name="base_page") * @ORM\Entity(repositoryClass="TO\SiteBundle\Repository\PageBaseRepository") * @ORM\InheritanceType("SINGLE_TABLE") * @ORM\DiscriminatorColumn(name="type", type="string") * @ORM\DiscriminatorMap