Hey unicolored!
Check that you have this section in your `config/packages/dev/monolog.yaml` file: https://github.com/symfony/recipes/blob/a4a3f3448d0673e82e10bec9e6c75bbf0fe206ff/symfony/monolog-bundle/3.3/config ...
... installing Encore on Symfony : composer require symfony/webpack-encore-bundle
yarn install
it works
I have a blog on Symfony 4. Some pages of this blog change their URL address and I need to make a 301 redirect from the old page address to the new one. How to do it right at Symfony 4? Maybe there is some kind of bundle? ...
... binary which can be used for dev and prod testing.
PS using symfony/web-server-bundle is not recommended for production
Cheers!
Hello,
I notice that symfony profiler generate a log message about deprecation :
The "Symfony\Bundle\FrameworkBundle\Controller\AbstractController::getUser()" method is considered final. It may change without further ...
... arguments to a service, it looks like this (your example above passes the arguments all on 1 line, but it's equivalent to this multi-line version)
```
arguments:
- foo
- bar
```
But, in Symfony 2 ...
... /config/routes.xml')->prefix('/api');
```
I'll add a note about that too. If you have any issues, let me know :).
> 1x: Since symfony/framework-bundle 5.1: Not setting the "framework.router.utf8" configuration option is ...
... registers `ErrorListener` as a service, it sets the string `error_controller` as its first argument. You can see it right here: https://github.com/symfony/symfony/blob/75e71e3bbefffe1e67d80e842d66721b98f6a531/src/Symfony/Bundle ...
... actually reading the Configuration class that's inside of the TwigBundle (https://github.com/symfony/symfony/blob/master/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php). So, these classes are just defining ...
... any "defaults" that we've set up. For example, after the Configuration class is processed, the `$config` variable will still have a key with `unicorns_are_real` set to true - https://symfonycasts.com/screencast/symfony-bundle/bundle-configuration#codeblock-3c45ce51e5
Let me know if that helps explain things!
Cheers!
... /console": "4.2.*",
"symfony/dotenv": "4.2.*",
"symfony/flex": "^1.1",
"symfony/framework-bundle": "4.2.*",
"symfony/yaml": "4.2.*"
},
"config": {
"preferred-install ...
... //github.com/symfony/symfony/blob/43066ff98d158946f6b5f8473802c9301f0abf49/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php#L2584-L2589 - the same is true for notifier - https://github.com ...
Thanks for reply,
Basically it says "package not found" it was working before but now i cant install webserver using: compose req --dev server i need to put now: compose require symfony/web-server-bundle . do you know why? ...
To all who had this problem:
composer update sensio/distribution-bundle
(I am based on the Symfony 3 code from the CHAPTER 4 (as opposed to the part 4 of this chapter) ...
TY Ryan!
Yes, i already tried to install that bundle via composer but seems there are several huge problems with Symfony Framework 3.
I quit almost immediately...
Actually I was exactly looking for the 'official' solutions :) ...
Hey Ali,
Good catch! Until it will be fixed, you can use annotation above the variable to get autocompletion temporarily:
```
/** @var \Symfony\Bundle\FrameworkBundle\Templating\EngineInterface $templating */
$templating = $this->container->get('templating');
```
Cheers! ...
Just finishing my first web app with Symfony and was wondering what was the best to test it, or/and if there was a good bundle to check the code quality and/or security issues? Any recommendations?
Thanks ...
... Hey Kelvin,
"$this->get()" in a controller is just a shortcut for "$this->container->get()". Open the Symfony\Bundle\FrameworkBundle\Controller\Controller::get() and you will see it yourself ;)
Cheers!
To work just fine, I had to add after the namespace "use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;" and "use Symfony\Component\HttpFoundation\JsonResponse;".
I suppose it's the fault of my IDE but everthing else was working just fine. ...
Little Type : gEt add
where:
Upgrading the symfony/framework-bundle Recipe
.
.
Apparently this modified several files. You know the drill: let's start walking through the changes by running:
get add -p
should of course be
git add -p
;) ...
1545
symfony bundle
Filter Results