1545 search results for symfony bundle

Hi With all my Symfony applications I start with a base project that I’ve built which covers the basics (I usually use jQuery DataTables but some applications can have 000s or results so Pagination is required). As I ...
... /distribution-bundle and even the new Symfony 2.7.1 are designed to suppress the writing of these errors to the log, but not to prevent them from appearing in the toolbar? Is there a way to prevent the latter? In prod mode, my ...
craig heydenburg
craig heydenburg
Read Full Comment
... Hello, I'm trying to use this in my project. But I will always get stuck in the start() function. - symfony/symfony: v3.4.1 - lexik/jwt-authentication-bundle: v2.5.4 When I debug my JwtTokenAuthenticator.php I get the ...
... need an ORM. To make those packages easier to find and install, we use the "alias" system in Flex. As far as *other* templating systems, for example, these are just as easy to install (if a bundle exists in the community) in Symfony 3 or Symfony 4 - not much has changed there. I hope this clarifies! Cheers!
weaverryan
weaverryan
Read Full Comment
... with symfony/symfony. property-accessor, symfony/security and others are required by bundles i require. 1.) Question: i am a correct, that i cannot use symfony/symfony anymore but have to switch to symfony/framework ...
... example in Symfony (from a no-longer-existing server:start command) that you can check out - https://github.com/symfony/symfony/blob/83093d5448a7b90fd4cbcce38580ae53898f506f/src/Symfony/Bundle/WebServerBundle/WebServer.php ...
weaverryan
weaverryan
Read Full Comment
55 lines | src/Kernel.php
// ... lines 1 - 2
namespace App;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
use Symfony\Component\Routing\RouteCollectionBuilder;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
private const CONFIG_EXTS = '.{php,xml,yaml,yml}';
public function registerBundles(): iterable
{
$contents = require $this->getProjectDir().'/config/bundles.php';
foreach ($contents as $class => $envs) {
if ($envs[$this->environment] ?? $envs['all'] ?? false) {
yield new $class();
}
}
}
public function getProjectDir(): string
{
return \dirname(__DIR__);
}
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
{
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
$container->setParameter('container.dumper.inline_class_loader', \PHP_VERSION_ID < 70400 || $this->debug);
$container->setParameter('container.dumper.inline_factories', true);
$confDir = $this->getProjectDir().'/config';
$loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');
$loader->load($confDir.'/{packages}/'.$this->environment.'/*'.self::CONFIG_EXTS, 'glob');
$loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');
$loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
}
protected function configureRoutes(RouteCollectionBuilder $routes): void
{
$confDir = $this->getProjectDir().'/config';
$routes->import($confDir.'/{routes}/'.$this->environment.'/*'.self::CONFIG_EXTS, '/', 'glob');
$routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');
$routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');
}
}
See Code Block in Script
More about Services

... / directory as a service. But it also excludes some things, like DependencyInjection, Entity, and Kernel.php. This services.yaml file, including this config, comes with the core symfony/framework-bundle. Up here, we have ...

2:24
The Server New IsGranted

... 8001. Ha! It works! Check it out: Symfony 4.0.1. Surf around to see if everything works: go to /genus. Looks great! Now /admin/genus. Ah! Looks terrible! To use the @Security tag, you need to use the Security component and ...

4:17
config_dev.yml config_prod.yml

... what do these dev and prod strings do? Here's the secret: when Symfony boots, it loads only one configuration file for the entire system. And no, it's not config.yml - I was lying to you. Sorry about that. No, the dev ...

3:27
Setup Services the Service Container

Hey friends! Welcome back to Episode 2 of our Symfony 7 tutorial. I’ll be your brave - or maybe foolish guide through topics I absolutely love.. No matter what you do with Symfony, the most important thing you'll use ...

4:25
Upgrading Encore and your assets Setup

Just two recipes left to update! Let's do webpack-encore-bundle next. This recipe changed quite a bit over the past year and a half, so depending on how old your version is, this might be easy.... or maybe not so easy ...

8:22
Security the User Class

... composer update symfony/maker-bundle Version 1.7 of MakerBundle comes with a new command that will make our life much easier. Yep, there it is: 1.7. The new command is called make:user - try it ...

6:30
Routes Controllers Pages oh my

... - a Symfony app is basically just a small route-controller system. Later, we'll install more features when we need them, like a warp drive! Those always come in handy. Adding more features is actually going to be pretty ...

7:16
Event Hooks

... pretty much anything... it dispatches an event: PRE_UPDATE, POST_UPDATE, POST_EDIT, PRE_SHOW, POST_SHOW... yes we get the idea already! And this means that we can use standard Symfony event subscribers to totally kick ...

6:15
... panther B) In bootstrap.php, we're going to "short circuit" things. Before the .env files are loaded - so here - https://github.com/symfony/recipes/blob/38170f3d78c7e4f88fd26f8e3b153d96bb650445/symfony/framework-bundle/4.2 ...
weaverryan
weaverryan
Read Full Comment
Upgrading to the Symfony 3.0 Directory Structure

... Hey, we're on Symfony 2.8! Before we fully upgrade, let's move into the new 3.0 directory structure... which you can actually use with any version of Symfony... But in 3.0, it's super official. And remember: the new ...

13:36
... ".` Any idea as to what might be happening? Here's my code: ```php namespace App\Normalizer; use App\Entity\User; use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\DependencyInjection\Attribute ...
Hi Victor, So here is what I tried to do. My class looks like this: ``` namespace App\Controller\Api; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response ...
Alessandro-D
Alessandro-D
Read Full Comment
... dependencies? In newer version of Symfony "use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;" annotation does not work and should be replaced with "use Symfony\Component\Routing\Annotation\Route;" instead. Probably it's worth to try and see if it helps. Cheers!