1534 search results for symfony bundle

// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 40
private function getProviderKey(): string
{
// TODO
}
}
See Code Block in Script
// ... lines 1 - 16
class TargetPathHelper
{
// ... lines 19 - 20
private $session;
private $firewallMap;
public function __construct(SessionInterface $session, FirewallMap $firewallMap)
{
$this->session = $session;
$this->firewallMap = $firewallMap;
}
// ... lines 30 - 44
}
See Code Block in Script
// ... lines 1 - 13
use Symfony\Component\HttpFoundation\Session\SessionInterface;
// ... lines 15 - 16
class TargetPathHelper
{
// ... lines 19 - 24
public function __construct(SessionInterface $session, FirewallMap $firewallMap)
{
// ... lines 27 - 28
}
// ... lines 30 - 44
}
See Code Block in Script
// ... lines 1 - 15
class TargetPathHelper
{
use TargetPathTrait;
// ... lines 19 - 24
public function savePath(string $uri)
{
$this->saveTargetPath();
}
}
See Code Block in Script
// ... lines 1 - 13
use Symfony\Component\Security\Http\Util\TargetPathTrait;
class TargetPathHelper
{
use TargetPathTrait;
// ... lines 19 - 28
}
See Code Block in Script
// ... lines 1 - 13
class TargetPathHelper
{
/**
// ... lines 17 - 18
* @param string $uri The URI to set as the target path
*/
public function savePath(string $uri)
{
}
}
See Code Block in Script
// ... lines 1 - 13
class TargetPathHelper
{
/**
* Sets the target path the user should be redirected to after authentication.
*
* @param string $uri The URI to set as the target path
*/
public function savePath(string $uri)
{
}
}
See Code Block in Script
Upgrading to Symfony 3

... requires symfony/process at version 2.2. In normal English, Composer is saying: Yo! Your version of sensio/distribution-bundle in composer.json needs symfony/process 2.2. You probably need to upgrade the distribution bundle ...

4:04
Upgrading to DoctrineBundle 2.0

... means that we need to upgrade it. Google for DoctrineBundle and find its GitHub page. If you did some digging, you'd learn that if you want Symfony 5 support, you need version 2 or higher of this bundle. There's also a ...

6:50
Creating a Login Form Part 1

... namespace Yoda\UserBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; class UserBundle extends Bundle { } Now, just activate it in the AppKernel class and, voila! Our brand new shiny bundle is ready: // app/AppKernel.php ...

4:46
Custom Extension Alias

... base class. One of the methods is called getContainerExtension(). When Symfony builds the container, it loops over all bundle classes and calls this method, which returns the extension object. Check out the ...

4:04
Service Integration Test

... want to initialize our bundle into a real app, and check that the container has that service. But... we do not have a Symfony app lying around! So... let's make the smallest possible Symfony app ever. To do this, we just ...

7:22
Bundles of Joy

Bundles are a hipster buzzword in the Symfony world. Yea, they're cool but we really deserve all the credit! A bundle is just a place for us to put our hard-earned code. We might make an EventBundle directory for that ...

3:19
Upgrading to Symfony 5.0

... of them - a few are not part of the main Symfony library, like monolog-bundle. But basically, everything that has 4.4.* now needs to be 5.0.*. We also need to update one more thing: the extra.symfony.require value: This ...

9:10
Course
FOSUserBundle FTW v1.3

Learn to install, configure, and master the most important parts of FOSUserBundle in this screencast. FOSUserBundle is the most popular Symfony bundle, and with good reason. It comes packed with features for login ...

1 videos
|
13:15
Proper Bundle composer.json File

... stability alone and, for "Package Type" - this is important! - use symfony-bundle. That's needed so that Flex will automatically enable the bundle when it's installed. For License, I'll use MIT - but more on that later. And ...

5:44
Adding Stimulus

... special integration with Stimulus. So instead, run: composer require symfony/stimulus-bundle StimulusBundle is a relatively new package that houses some Twig shortcuts that we'll use ...

8:04
Symfony UX Chart.js

... composer.lock, which is totally normal. And the PHP package we just installed is actually a Symfony bundle, so its Flex recipe auto-enabled that bundle in config/bundles.php and updated the symfony.lock file. But here's ...

7:48
Bundles

... mystical creatures are providing us with all of these free tools? The answer is: the bundle fairies. In your IDE, open up app/AppKernel.php: The kernel is the heart of your Symfony application... but it really doesn't do ...

4:55
Auto-Adding Services

... we're going to create a bundle. Actually, the perfect solution would be to create a library with only the KnpUIpsum class, and then also a bundle that requires that library and adds the Symfony service configuration. A ...

6:50