1545 search results for symfony bundle

... (1.9.1): Loading from cache - but now I get [Symfony\\Component\\Config\\Exception\\FileLoaderLoadException] \n Class Doctrine\\Bundle\\FixturesBundle\\Fixture not found in /var/www/project/ \n ...
... use it - probably consider replacing it in favor of Symfony Cache component. Most probably that bundle isn't a required dependency now, so you can just remove that line from the bundles.php list and it should work. But if ...
Hi Ryan, Updating my Symfony project. Had success until I got to the point where adding this AppBundle\: # resource: '../../src/xxx/Bundle/AppBundle/*' # # you can exclude directories or files # # but if a service is ...
The HTTP Client Service

... answer is FrameworkBundle. Open config/bundles.php. The first bundle here is FrameworkBundle. That's a core Symfony bundle, and it has been in our application since the beginning. This bundle's superpower is watching ...

6:15
Hi Victor, Thank you for interesting, I create my security by watching videos from Symfony cast. And now I have problem to implement server side receptcha. There is some bundles but they use symfony forms for ...
... ` IS present. And... that's interesting - because that's *exactly* the service that ApiTestCase looks for (and fails if it's not there): https://github.com/api-platform/core/blob/master/src/Bridge/Symfony/Bundle/Test ...
weaverryan
weaverryan
Read Full Comment
... //github.com/symfony/symfony/blob/9e810dea50cb47deb8500ad7ffb56d5a5622b46e/src/Symfony/Bundle/FrameworkBundle/KernelBrowser.php#L103 * When you pass that a user, it creates its own `TestBrowserToken` object - https ...
weaverryan
weaverryan
Read Full Comment
... //github.com/symfony/recipes/blob/master/easycorp/easyadmin-bundle/2.0/config/routes/easy_admin.yaml - i.e. Flex just copy/paste the easy_admin.yaml file with routes into "config/routes/easy_admin.yaml" in your project, and ...
... As symfony/ux-turbo-mercure has been abandoned (files are located in symfony/ux-turbo), you now should run `composer req symfony/mercure-bundle` instead. Also, set `enabled` to `true` in assets/controllers.json for the mercure-turbo-stream config.
When i try to load the fixtures i get this error: [InvalidArgumentException] Could not find any fixtures to load in: - /Applications/MAMP/htdocs/starwarsevent/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBund .... and more Help please ...
17 lines | src/Controller/StarshipController.php
// ... lines 1 - 2
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class StarshipController extends AbstractController
{
#[Route('/starships/{id<\d+>}')]
public function show(int $id): Response
{
dd($id);
}
}
See Code Block in Script
17 lines | src/Controller/AdminController.php
// ... lines 1 - 2
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class AdminController extends AbstractController
{
#[Route('/admin')]
public function dashboard(): Response
{
return $this->render('admin/dashboard.html.twig');
}
}
See Code Block in Script
17 lines | src/Controller/MixController.php
// ... lines 1 - 4
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class MixController extends AbstractController
{
#[Route('/mix/new')]
public function new(): Response
{
dd('new mix');
}
}
See Code Block in Script
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class SongController extends AbstractController
{
#[Route('/api/songs/{id}')]
public function getSong($id): Response
{
dd($id);
}
}
See Code Block in Script
21 lines | src/Controller/SecurityController.php
// ... lines 1 - 2
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class SecurityController extends AbstractController
{
/**
* @Route("/security", name="security")
*/
public function index(): Response
{
return $this->render('security/index.html.twig', [
'controller_name' => 'SecurityController',
]);
}
}
See Code Block in Script
... Tutorial. -- Run following commands: `composer require symfony/orm-pack composer require --dev symfony/maker-bundle composer require annotations composer require twig composer require doctrine/annotations composer ...
... tags: ['controller.service_arguments'] to the app's app/config/services.yml file, it generates this error (on web refresh): Class Symfony\Bundle\FrameworkBundle\Test\WebTestCase not found in /home/cameron/twenchaFF ...
... the old and new format to see the changes needed: Old format: https://github.com/symfony/recipes/blob/master/doctrine/doctrine-migrations-bundle/1.2/config/packages/doctrine_migrations.yaml New format: https://github.com ...
weaverryan
weaverryan
Read Full Comment
|mention:213| I have a problem with `vue_component`. Symfony says this is the way how you render a vue component. Now I tried that in a bundle-related setup. Imagine I have a `core` and a `ui` bundle. If I create a ...
Christian
Christian
Read Full Comment
Event Constants Event Docs

... create a new class: KnpULoremIpsumEvents. If your bundle dispatches events, you should typically have one class that has a constant for each event. It's a one-stop place to find all the event hook points. Make this ...

5:25