Questions tagged [symfony-4.4]

Symfony is a PHP framework developed by SensioLabs. Symfony 4.4 was released in November 2019.

Symfony is a PHP web framework first released in July 2011 and was created by SensioLabs. Symfony 4.4 was released in November 2019.

Bug fixes

  • bug #34464 [Form] group constraints when calling the validator (@nicolas-grekas)
  • bug #34451 [DependencyInjection] Fix dumping multiple deprecated aliases (@shyim)
  • bug #34448 [Form] allow button names to start with uppercase letter (@xabbuh)
  • bug #34428 [Security] Fix best encoder not wired using migrat _from (@chalasr)

Documentation / Resources

  • Overview: Documentation for current version.
  • Flex: New way to manage Symfony apps.
  • Best Practices: Best practices for developing web apps, esp. the ones using the full-stack Symfony framework.
  • Symfony Recipes Server: Includes official and community recipes.
108 questions
0
votes
0 answers

symfony 4.4 + FOSCKEditor + helios-agElfinder not working

Using Symfony 4.4 + "friendsofsymfony/ckeditor-bundle": "^2.2" + "helios-ag/fm-elfinder-bundle": "dev-master" after composer install (but also tried composer require helios-ag/fm-elfinder-bundle from the docs page) gives me Executing script…
iModi
  • 101
  • 12
-1
votes
1 answer

Get base url on symfony 3.4 command

I'm trying to get the base url on a command to get localhost on local and the production url on producction but all the exmaples I found are using the reuqest object but I don't have it on a command: class PasswordExpirationCommand extends…
a_fr159
  • 17
  • 2
-1
votes
1 answer

When should I use the deny access functions in Symfony 4.4 controllers?

I was wondering how the security works in Symfony. I have in security.yaml this line of code: # Admins can go to /account-management - { path: '^/account-managent', roles: [ROLE_ADMIN] } This deny's access to everyone except users with admin roles…
Allart
  • 830
  • 11
  • 33
-1
votes
1 answer

Symfony 4 => 5 : Problem with ApiPlatform

I'm trying to upgrade a project from Symfony 4.4 to 5. I have a problem with api-platform/core package. I updated all symfony/* package to 4.4.* to 5.0.* and updated api_platform/core from 2.6 to 2.6.5 When I run composer update…
Lolo
  • 527
  • 2
  • 8
  • 26
-1
votes
1 answer

Composer installation failed

While running the Pimcore6.9 along with the symfony4.4 I had spotted some warnings: The MimetypeGuesser is depricated since symfony4.3 use MimeTypes instead. composer show -i does not show any mime Package at all, so in order to get rid of this…
Christian Felix
  • 644
  • 1
  • 9
  • 28
-1
votes
1 answer

Bulk setting Symfony form field values with setData in SF4.4

In my Symfony 4.4 application I have the following code inside my controller. I am attempting to pre-populate the form based on previous submissions or data pulled from the database. Importantly, the DetailsType form includes multiple entities so…
crmpicco
  • 16,605
  • 26
  • 134
  • 210
-1
votes
1 answer

Symfony 4.4 not iclude .env.local

4 (upgraded) . And .env.local is not included what can be a reason ? requirements "symfony/acl-bundle": "^1.0", "symfony/asset": "^4.4", "symfony/console": "^4.4", "symfony/expression-language": "^4.4", …
Developer
  • 2,731
  • 2
  • 41
  • 71
-1
votes
2 answers

Connection could not be established with host "ssl://null:465": stream_socket_client(): php_network_getaddresses: getaddrinfo failed

If I use symfony/mailer in symfony4.4 on the my localhost with mailtrap, it works. No error But If I try on the server https://my.ionos.fr, it display error like this : Connection could not be established with host "ssl://null:465":…
yvon
  • 81
  • 1
  • 8
-1
votes
2 answers

Symfony Validator: validate by comparing the old value from the DB

I'm working with Symfony 4.4, For security reason, when submitting OrderProduct entity that embedd Product entity, I have to control some values of OrderProduct taken from Product. So, it's an Symfony API, I receive an orderProduct in a JSON…
Med Karim Garali
  • 923
  • 1
  • 14
  • 37
-2
votes
1 answer

Install symfony/maker-bundle

I'm dealing with an application created with symfony 3.4 and updated to symfony 4.4, I need to update doctrine/inflector to 2.^ version to install symfony/make-bundle, with: composer require symfony/maker-bundle --dev I get: Problem 1 - Root…
dr_fg2
  • 47
  • 1
  • 1
  • 5
-2
votes
1 answer

Annotation error while trying to upload image using symfony 4.4

I am using Symfony 4.4 and trying to upload an image. But while creating schemas I am getting an Annotation error. [Semantical Error] The annotation "@Symfony\Component\Validator\Constraints\Image\Image" in property App\Entity\Student::$photo was…
Ajmalriyaz
  • 37
  • 6
-2
votes
1 answer

Security.yaml with different users roles

i'm new with symfony 4.4 and i'm struggling with roles in security.yaml file , i have 3 types of users : Admin , recruter and user , i was trying to give recruter access to the login form security_login_recruteur and at the same time i wanted the…
Hello_world
  • 65
  • 1
  • 3
  • 17
-2
votes
1 answer

i'm having trouble creating the database using symfony framework

STRUCTURE: Student: First name, last name ,date of birth, image. class:name, section course:name,description grades:student,course,class So i'm struggling to create this database in symfony with doctrine ORM , if someone can help with the…
-2
votes
1 answer

Css and js files not loading

i just deployed my symfony 4 app but the problem that i'm facing is the app do not loads images,routes, css files and js files. i did install assets. here's what i get Failed to load resource: the server responded with a status of 404 (Not…
ted
  • 7
  • 2
-2
votes
1 answer

return a custom status code in User Checker

I'm working with Symfony 4.4. I'm using JWT Authentication and I'm now creating a custom user checker: I want to return a custom response code and a custom message when user checker detect that user can not connect. security.yaml: …
Med Karim Garali
  • 923
  • 1
  • 14
  • 37