Questions tagged [symfony-4.2]

Symfony is a PHP framework developed by SensioLabs. Symfony 4.2 was released in November 2018.

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

Bug fixes

  • bug #29343 [Form] Handle all case variants of "nan" when parsing a number (@mwhudson, @xabbuh)
  • bug #29373 [Routing] fix trailing slash redirection (@nicolas-grekas)
  • bug #29355 [PropertyAccess] calculate cache keys for property setters depending on the value (@xabbuh)
  • bug #29369 [DI] fix combinatorial explosion when analyzing the service graph (@nicolas-grekas)
  • bug #29349 [Debug] workaround opcache bug mutating "$this" !?! (@nicolas-grekas)
  • bug #29344 Fixes sprintf(): Too few arguments in Translator (@stephanedelprat)
  • bug #29318 [Console] Move back root exception to stack trace in verbose mode (@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.
96 questions
0
votes
0 answers

How to fix "Maximum execution time of 30 seconds exceeded" in Symfony4.2

I am getting Error: Maximum execution time of 30 seconds exceeded every time I add CountryType field to any form in Symfony 4.2 In Symfony 4.2 FormType, I have CountryType field added to the form and when it is added, any controller using that…
0
votes
2 answers

Symfony 4 : How to have multi providers for user/admin in firewall?

I can not have two different providers for user and admin with two different forms I want to have two firewalls, for users and for admins. I created two different providers linking two different entities. I can log in as a user, but never as Admin…
Fabrice
  • 47
  • 10
0
votes
1 answer

LexikJWTAuthenticationBundle - How to grant different access to different path's?

I am using LexikJWTAuthenticationBundle to authenticate in my web-application using REST Webservice. I want to divide my application into two sections: a public section, where everyone could see the content - without login a private section,…
0
votes
1 answer

401/405 Error Symfony 4 REST: JWT API Authentication (LexikJWTAuthenticationBundle) on docker - ngnix

I wanted to integrate a authentification login into the backend of my REST Api. I installed and configured the LexikJWTAuthenticationBundle in my REST-API backend following this tutorial: https://www.youtube.com/watch?v=XT4oy1d1j-g The backend is…
beer
  • 25
  • 1
  • 6
0
votes
1 answer

how can i edit services.yaml after overriding FOUserBundle

I integrated FOSUserBundle to my project in Symfony 4, everything is ok. My goal : add 2 attributes in user.php (name and firstname). My steps: i added these 2 attributes in User.php (src Entity User.php) -- ok i move to my terminal to genrate…
0
votes
1 answer

How override default Psr\LogLoggerInterface alias

I try to create an alias with id 'Psr\Log\LoggerInterface' for a service which implement this interface. But the alias seems to not work. Here is the my configuration in services.yaml services: A\Name\Space\LoggerService: arguments: …
0
votes
1 answer

Symfony 4.2 Custom Circular Reference Handler Does not Apply

The context is that I have been trying to set up a Custom Circular Reference Handler for my entities that will effect ALL entities. According to documentation ( https://symfony.com/doc/current/components/serializer.html#handling-circular-references…
0
votes
2 answers

add remeber me to Symfony 4.2 Security with custom User Entity

I'm working with Symfony 4.2, I'm working with Security Component and I'm trying to add remember me. At first Remember Me worked for me, but when my User Entity Became Customized, the remember me doesn't work anymore, My Custom User: I'm connected…
Karim Garali
  • 75
  • 2
  • 13
0
votes
1 answer

Symfony 4.x ROLE_USER error when rendering a form with $form->createView()

I'm creating a blog with Symfony 4 and generate forms with : php bin/console make:form when I try to render it like this : /** * Require ROLE_USER for only this controller method. * @Route("/create", name="post.create") * …
TooN
  • 1
0
votes
1 answer

How to get value from an Object?

I am working on Symfony 4.2, I fetched the session in my controller like: $data = $this->get('security.token_storage')->getToken()->getUser(); when I dump($data); gives me, DashboardController.php on line 17: User {#504 ▼ -id: 1 -f_name:…
Saurabh
  • 432
  • 1
  • 10
  • 23
0
votes
1 answer

Doctrine Relations, Breaking ManyToMany when I clone an entity

So I'm creating a doctrine entity, called exhibitors. This entity has relationships to 2 other entities, both are ManyToMany relationships. They are Quotes and Services. When I clone the exhibitor, it also clones all existing quotes and services…
0
votes
1 answer

Unable to login due to Foreign key constraint between two tables

I have two tables 'User' and 'Address', there is OneToOne relation between them as User table has a column 'address_id' which stores 'id' of Address table. Here is the annotation in User Entity: /** *…
Saurabh
  • 432
  • 1
  • 10
  • 23
0
votes
1 answer

There are no commands defined in the "ckeditor" namespace

I tried to install FOS\CKEditoBundle on my Symfony 4.2 project which should work with easyAdminBundle... When I'm follow the Sensio documentation and try to execute ./bin/console ckeditor:install command, I get this error: There are no commands…
J1v3
  • 84
  • 1
  • 9
0
votes
1 answer

hwi_oauth can't connect to FOS_OAUTH_SERVER

I looked through several solutions with the centralised login service. My Situation is as following: Central Login under login.domain.tld Backend under backend.domain.tld Customer Service under: support.domain.tld frontend under…
0
votes
1 answer

The class 'App\Entity\User' was not found in the chain configured namespaces

I am running into the error: The class 'App\Entity\User' was not found in the chain configured namespaces I am running Symfony 4.2 with API Platform. I need to create an API token/key authentication setup and am using the guard…