1545 search results for symfony bundle

Hey Christopher M.! Hmm, still pretty relatable, but not entirely, of course. The biggest change would be the directory structure - it's a bit different between Symfony 2.6 and 3. However, all the fundamentals of ...
weaverryan
weaverryan
Read Full Comment
... " here? https://github.com/symfony/maker-bundle/blob/master/src/Maker/MakeAuthenticator.php#L183 I did originally choose the "Login form authenticator" option but cancelled it before answering "The class name of the authenticator to create (e.g. AppCustomAuthenticator):". ...
Hey guys, I have this issue. I deleted the swiftmailer bundle from AppKernel. Removed it from all config files and dist file, but still when I run debug:container mailer I receive "mailer is an alias of ...
Tonislav A.
Tonislav A.
Read Full Comment
How can i generate the entity in my own Bundle ?? For example. I have UserBundle. By making "make:entity \User\Entity\User" , The command generates the file "User.php" at the desirable location( App/User/Entity). But ...
Iordanis G.
Iordanis G.
Read Full Comment
Hey Matthieu Thanks for your kind words :) Answering your question, yes, VichUploaderBundle is a great bundle for handling file uploads in Symfony. What I usually do is to store all uploaded files into a public ...
51 lines | src/Repository/UserRepository.php
// ... lines 1 - 2
namespace App\Repository;
use App\Entity\User;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
/**
* @method User|null find($id, $lockMode = null, $lockVersion = null)
* @method User|null findOneBy(array $criteria, array $orderBy = null)
* @method User[] findAll()
* @method User[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class UserRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
{
parent::__construct($registry, User::class);
}
// ... lines 21 - 49
}
See Code Block in Script
51 lines | src/Repository/CommentRepository.php
// ... lines 1 - 2
namespace App\Repository;
use App\Entity\Comment;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Symfony\Bridge\Doctrine\RegistryInterface;
/**
* @method Comment|null find($id, $lockMode = null, $lockVersion = null)
* @method Comment|null findOneBy(array $criteria, array $orderBy = null)
* @method Comment[] findAll()
* @method Comment[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class CommentRepository extends ServiceEntityRepository
{
public function __construct(RegistryInterface $registry)
{
parent::__construct($registry, Comment::class);
}
// ... lines 21 - 49
}
See Code Block in Script
37 lines | tests/Functional/VoyageControllerTest.php
// ... lines 1 - 2
namespace App\Tests\Functional;
use App\Factory\PlanetFactory;
use App\Factory\VoyageFactory;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Zenstruck\Browser\Test\HasBrowser;
use Zenstruck\Foundry\Test\Factories;
use Zenstruck\Foundry\Test\ResetDatabase;
class VoyageControllerTest extends WebTestCase
{
use ResetDatabase;
use Factories;
use HasBrowser;
public function testCreateVoyage()
{
PlanetFactory::createOne([
'name' => 'Earth',
]);
VoyageFactory::createOne();
$this->browser()
->visit('/')
->click('Voyages')
->click('New Voyage')
->fillField('Purpose', 'Test voyage')
->selectFieldOption('Planet', 'Earth')
->click('Save')
->assertElementCount('table tbody tr', 2)
->assertSee('Bon voyage')
;
}
}
See Code Block in Script
... /25334. Basically I had started with a 3.4 install and was slowly developing things out, but when trying to access the site through app.php it would crash with what I believe was the "Cannot redeclare class Symfony\Bundle ...
J.R. Jenkins
J.R. Jenkins
Read Full Comment
... you upgraded your project to the newer version of Symfony and did wrong changes. I see you have Symfony v5.1.11. Please, sync your index.php file with this recipe: https://github.com/symfony/recipes/blob/master/symfony ...
... Here's what I see when I run "composer require encore": ` Using version ^1.5 for symfony/webpack-encore-bundle ./composer.json has been updated Loading composer repositories with package information Updating ...
... :onKernelException() 0 #5 Symfony\Bundle\SwiftmailerBundle\EventListener\EmailSenderListener::onException() 0 #6 Symfony\Component\HttpKernel ...
Bartlomeij
Bartlomeij
Read Full Comment
Hey Murilo! In the mean time - check out http://symfony.com/doc/current/cookbook/security/api_key_authentication.html. You may need to setup an OAuth server (there is a bundle for this - FOSOAuthServer), or you might ...
weaverryan
weaverryan
Read Full Comment
Symfony2 Make my Controllers Services

... KnpU\QADayBundle\Controller; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Bundle\FrameworkBundle\Templating ...

12:24:15
... Hey Kiuega, > is this tutorial can be for Symfony 5 (with same code) with PHP 8 ? Thank you for your interest in SymfonyCasts tutorials! Unfortunately, download code of this course is not compatible with PHP 8 ...
... ): First, `CsvExporter`: ```php namespace App\Service; use Doctrine\ORM\QueryBuilder; use EasyCorp\Bundle\EasyAdminBundle\Collection\FieldCollection; use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; use ...
weaverryan
weaverryan
Read Full Comment
... /javaScriptProject/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php(64): Symfony\ Component\DependencyInjection\Loader\XmlFileLoader->load ...
Akavir S.
Akavir S.
Read Full Comment
FrameworkBundle Recipe Part 2 The Kernel Class

... git commit -m "upgrading symfony/framework-bundle recipe" Phew! Next, let's update the TwigBundle recipe then keep going onto the Mailer recipe and then the rest. Home stretch people!

8:37
... leverage this bundle: https://github.com/SymfonyCasts/verify-email-bundle - it has docs explaining how to set up and configure it. We're also going to cover this bundle in our Symfony 5 Security course which in rough might be started releasing in about a month I think :) I hope this helps! Cheers!
... edit every migration and add a ``` public function isTransactional(): bool { return false; }``` to it... 3) Finally I hit an error I had never seen before... `Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter ...