1545 search results for symfony bundle

Hey @henene Sounds like some bundle or symfony version was updated, have you tried to change type-hint, as described in error? Cheers ...
Hey Tomas, Yay! Thank you for all your huge job in that bundle! That's GREAT it supports Symfony 5 now :) Cheers! ...
Hey Capucine, Not really, it's just a misprint :) Thanks for pointing this, I fixed it in https://github.com/knpuniversity/symfony-bundle/commit/06753cd229819e03fb1dec909030a82d6a2ffc2c Cheers! ...
Are these identical? `composer require symfony/webpack-encore-bundle` and `composer require encore` If not, should I require both of them through composer? ...
Kensley L.
Kensley L.
Read Full Comment
Hey Peter! Ha! Glad you find this! Btw, we will probably have a forgot password MakerBundle command very soon: https://github.com/symfony/maker-bundle/pull/359 Cheers! ...
weaverryan
weaverryan
Read Full Comment
51 lines | src/Controller/QuestionController.php
// ... lines 1 - 5
use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;
// ... lines 7 - 9
use Symfony\Contracts\Cache\CacheInterface;
// ... lines 11 - 12
class QuestionController extends AbstractController
{
// ... lines 15 - 32
public function show($slug, MarkdownParserInterface $markdownParser, CacheInterface $cache, MarkdownHelper $markdownHelper)
{
// ... lines 35 - 48
}
}
See Code Block in Script
26 lines | src/Service/MarkdownHelper.php
// ... lines 1 - 4
use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;
use Symfony\Contracts\Cache\CacheInterface;
class MarkdownHelper
{
// ... lines 10 - 12
public function __construct(MarkdownParserInterface $markdownParser, CacheInterface $cache)
{
// ... lines 15 - 16
}
public function parse(string $source): string
{
// ... lines 21 - 23
}
}
See Code Block in Script
17 lines | src/Service/MarkdownHelper.php
// ... lines 1 - 4
use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;
use Symfony\Contracts\Cache\CacheInterface;
class MarkdownHelper
{
public function parse(string $source, MarkdownParserInterface $markdownParser, CacheInterface $cache): string
{
// ... lines 12 - 14
}
}
See Code Block in Script
51 lines | src/Controller/QuestionController.php
// ... lines 1 - 4
use App\Service\MarkdownHelper;
use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;
// ... lines 7 - 9
use Symfony\Contracts\Cache\CacheInterface;
// ... lines 11 - 12
class QuestionController extends AbstractController
{
// ... lines 15 - 32
public function show($slug, MarkdownParserInterface $markdownParser, CacheInterface $cache, MarkdownHelper $markdownHelper)
{
// ... lines 35 - 48
}
}
See Code Block in Script
52 lines | src/Controller/QuestionController.php
// ... lines 1 - 4
use Knp\Bundle\MarkdownBundle\MarkdownParserInterface;
// ... lines 6 - 8
use Symfony\Contracts\Cache\CacheInterface;
// ... lines 10 - 11
class QuestionController extends AbstractController
{
// ... lines 14 - 31
public function show($slug, MarkdownParserInterface $markdownParser, CacheInterface $cache)
{
// ... lines 34 - 49
}
}
See Code Block in Script
426 lines | symfony-docs/security/form_login.rst
// ... lines 1 - 407
You can also use the ``TargetPathHelper`` service in the same way::
// ... for example: from inside a controller
use Symfony\Bundle\SecurityBundle\Security\TargetPathHelper;
// ...
// ... lines 413 - 426
See Code Block in Script
// ... lines 1 - 4
use AppBundle\Form\UserRegistrationForm;
// ... line 6
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
// ... lines 8 - 9
class UserController extends Controller
{
// ... lines 12 - 14
public function registerAction(Request $request)
{
$form = $this->createForm(UserRegistrationForm::class);
// ... lines 18 - 21
}
}
See Code Block in Script
// ... lines 1 - 4
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
// ... line 6
use Symfony\Component\HttpFoundation\Request;
class UserController extends Controller
{
/**
* @Route("/register", name="user_register")
*/
public function registerAction(Request $request)
{
}
}
See Code Block in Script
60 lines | app/AppKernel.php
// ... lines 1 - 2
use Symfony\Bundle\WebServerBundle\WebServerBundle;
// ... lines 4 - 6
class AppKernel extends Kernel
{
public function registerBundles()
{
// ... lines 11 - 27
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
// ... lines 29 - 33
$bundles[] = new WebServerBundle();
}
// ... lines 36 - 37
}
// ... lines 39 - 58
}
See Code Block in Script
// ... lines 1 - 4
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Request;
// ... lines 7 - 8
class WebhookController extends BaseController
{
/**
* @Route("/webhooks/stripe", name="webhook_stripe")
*/
public function stripeWebhookAction(Request $request)
{
// ... line 16
}
}
See Code Block in Script
<?php
namespace AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
class MovieController extends Controller
{
public function indexAction($name)
{
return $this->render('', array('name' => $name));
}
}
See Code Block in Script
// ... lines 1 - 4
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Zenstruck\Foundry\Test\Factories;
use Zenstruck\Foundry\Test\ResetDatabase;
class LockDownHelperTest extends KernelTestCase
{
use ResetDatabase, Factories;
}
See Code Block in Script
64 lines | tests/Service/MailerTest.php
// ... lines 1 - 9
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
// ... lines 11 - 15
class MailerTest extends KernelTestCase
{
// ... lines 18 - 43
public function testIntegrationSendAuthorWeeklyReportMessage()
{
self::bootKernel();
// ... lines 47 - 49
$pdf = self::$container->get(Pdf::class);
$twig = self::$container->get(Environment::class);
// ... lines 52 - 61
}
}
See Code Block in Script
// ... lines 1 - 4
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use EasyCorp\Bundle\EasyAdminBundle\Event\BeforeEntityUpdatedEvent;
class BlameableSubscriber implements EventSubscriberInterface
{
public function onBeforeEntityUpdatedEvent(BeforeEntityUpdatedEvent $event)
{
// ...
}
public static function getSubscribedEvents()
{
return [
BeforeEntityUpdatedEvent::class => 'onBeforeEntityUpdatedEvent',
];
}
}
See Code Block in Script
// ... lines 1 - 13
use EasyCorp\Bundle\EasyAdminBundle\Config\UserMenu;
// ... lines 15 - 18
use Symfony\Component\Security\Core\User\UserInterface;
class DashboardController extends AbstractDashboardController
{
// ... lines 23 - 48
public function configureUserMenu(UserInterface $user): UserMenu
{
return parent::configureUserMenu($user);
}
// ... lines 53 - 58
}
See Code Block in Script