I have tried to set up use_strict_mode for sessions but I get the following error
Unrecognized option "use_strict_mode" under "framework.session"
What is strange is that in the documentation for symfony 2.7 this option appears under framework.session, but at the end of the file in the full configuration reference it does not.
https://symfony.com/doc/2.7/reference/configuration/framework.html#use-strict-mode
https://symfony.com/doc/2.7/reference/configuration/framework.html#full-default-configuration
Is it maybe because this option was introduced in another version, 2.8 , 3.0 maybe? And there is a mistake in the docs?
Related
I have recently updated my project from symfony 6.1 to symfony 6.2 and I'm experiencing issue while dumping translations
commend that I use:
bin/console translation:extract pl --force --format=yaml
results in:
exception trace points to
vendor/nikic/php-parser/lib/PhpParser/Node/Expr/CallLike.php:36
I've already updated all packages, especially symfont/translation to version 6.2.*
For now, only downgrading symfony back to 6.1 solves this for me.
This issue has been fixed in symfony 6.2.2. You can update your project and try again.
It has been resolved in my projects.
composer update "symfony/*"
`QueryBuilder#allowEager` method is deprecated. You should use `allowGraph` instead. `allowEager` method will be removed in 3.0
`QueryBuilder#eager` method is deprecated. You should use the `withGraphFetched` method instead. `eager` method will be removed in 3.0
QueryBuilder#omit is deprecated. This method will be removed in version 3.0
Model#$omit is deprected and will be removed in 3.0.
when installing Nginx on docker, logs bring this up.
any idea how i can acess the container using SSH to change those errors?
I installed the following packages on a symfony 2.8 project because I want to upgrade to version 3.4 to take advantage of the LTS
"propel/propel-bundle" : "4.0.x-dev",
"propel/propel" : "2.0.x-dev",
I search how to declare a behavior, before I was on version 1 of Propel, and to declare a behavior, it was enough to do that in the config.yml :
behaviors:
my_behavior: MyBundle\MyBehavior
The problem is that this configuration does not work anymore with the version 2, I can not find quite precise documentation on how to declare a propel behavior because the goal here is to then use it in the schema.xml like this :
<behavior name="geo_location"></behavior>
The goal is to run : propel:model:build but when I run this command, I get this error message :
Unrecognized option "behaviors" under "propel.database"
Have a look at this manual page. Long story short, you have to create a composer package with the type "propel-behavior" to be able to use your behavior in your project.
If you are having trouble, figuring it out, look up some existing behaviors on github to see how it is done.
Examples of cusotm behaviors can be found here.
User Deprecated: Parameter names will be made case sensitive in Symfony 4.0.
Using "httpprotocol" instead of "httpProtocol" is deprecated since Symfony 3.4.
I don't understand where this is coming from in my code. I am about to upgrade Symfony from 3.4 to 4, but this deprecation must be solved first. is httpprotocol just an example? I can not find that value in my code.
I had a parameter defined in the config.yml:
parameters:
locale: en
httpProtocol: http
and referenced in routes.yml
route:
schemes: ['%httpProtocol%']
I changed all of the httpProtocol parameters to http_protocol which seems to have solved the issue. The deprecation notice message was a bit misleading though.
I'm migrating symfony 2.6 app to the 3.0.4, I'm in a trouble with security.secure_random service, I was using it with dependency injection. Which is representing in security.xml
but I cannot see in 3.0.x I checked changelog every pixel of the project where it does go ? That I'm missing something ?
The class deprecated in 2.8 and removed in 3.0 in favour of the random_bytes function.
Essentialy the SecureRandomInterface had one nextBytes method, which behaves exactly as the PHP7 random_bytes function.
You can install https://github.com/paragonie/random_compat for forward compatibility