symfony5 Questions

2

Is it possible to combine annotations together with attributes like: /** * @Gedmo\Timestampable(on="create") */ #[ORM\Column(type: 'datetime')] private ?DateTime $createdAt;
Forta asked 11/11, 2021 at 16:2

3

Solved

I am just upgrading my symfony 4.4 application to 5.3 to use some new cool stuff (UX, UUID, ..). So I started a new project and ran the make:auth command to create the security components at latest...
Ascendancy asked 11/7, 2021 at 11:21

2

Solved

Take the following DTO classes: class UserDTO { /** * @param AddressDTO[] $addressBook */ public function __construct( public string $name, public int $age, public ?AddressDTO $billingAddres...
Tamis asked 23/12, 2021 at 22:29

4

Solved

I want to define a functional testcase for my phpunit-tests for my Symfony 5.3 application which requires the private service security.password_hasher from the container. I get the following execpt...
Amary asked 20/8, 2021 at 16:2

3

I am working on a new Symfony 5.3.6 project and want to implement authentication, based on the new system as stated in: https://symfony.com/doc/current/security/authenticator_manager.html#creating...
Eddington asked 15/9, 2021 at 10:7

2

Solved

I try to ignore two entities when I execute the command line doctrine:schema:update --force in my project who is writing like this : /** * @ORM\Entity(readOnly=true) * @ORM\Table(name="view_...
Haulage asked 3/1, 2023 at 9:18

11

Solved

I have fresh Symfony 5 project instlled locally, and added Easy Admin trought Symfony CLI: symfony composer req admin I should have /admin route but it's missing I run: symfony console cache:clear ...
Remit asked 20/6, 2020 at 11:46

4

Solved

As my IDE points out, the AbstractController::getDoctrine() method is now deprecated. I haven't found any reference for this deprecation neither in the official documentation nor in the Github chan...
Odoric asked 3/12, 2021 at 8:54

2

Solved

I am encoutering the following error with Symfony 5 when trying to bin/console cache:clear I know how I could patch that (memory_limit=-1) but I want know why I have this error. Error : PHP ...
Galileo asked 6/1, 2020 at 16:27

2

Solved

I want to implement the following authentication scenario in symfony 5: User sends a login form with username and password, authentication is processed against an LDAP server if authentication ag...
Constant asked 9/10, 2020 at 12:42

2

Solved

I upgraded Codeception to v4 (according to THIS) and then Symfony to v5 (according to THIS). Now, when I try to run tests I get an error about missing test file: root@blabla: vendor/bin/codece...
Explanation asked 6/1, 2020 at 9:58

2

Solved

I have updated my symfony application to 5.1.3. But since then there is a class missing exception on clearing the cache. In App_KernelDevDebugContainer.php line 1050: Attempted to load class &qu...
Arytenoid asked 2/8, 2020 at 18:58

6

Solved

I started a new project in new Symfony 5 and i can't open my local server. On Symfony 4.4 the command PHP bin/console server:run is OK, But with Symfony 5 the command appears not to be defined......
Refugio asked 4/12, 2019 at 11:2

5

Solved

Symfony 5 has changed its guard authentication method to a new Passport based one, using the new security config: enable_authenticator_manager: true; I would like to know how to authenticate a user...
Chellean asked 2/4, 2021 at 20:33

1

Solved

I am upgrading an old Symfony application (v2.8) to Symfony 5.3. I am using the process component where the arguments have to be passed in another way than before. My previous code was like use Sym...
Behn asked 29/11, 2021 at 9:51

7

Solved

I have an image under the public folder. How can I get my image directory in symfony4 ? In symfony 3, it's equivalent is : $webPath = $this->get('kernel')->getRootDir() . '/../web/';
Beulabeulah asked 2/2, 2018 at 14:54

6

Solved

I've been trying to use VichUploader to upload files on a Symfony project, already using EasyAdmin 3. I've configured everything correctly, but I'm getting this error: The "pieceJointeFile&qu...
Pleading asked 8/12, 2020 at 16:46

1

Solved

After upgrading Symfony from 4.4 -> 5.3 i get some deprecations which I cant located to solve. Here are 3 deprecations as example: User Deprecated: Since symfony/framework-bundle 5.3: The "...
Rape asked 21/8, 2021 at 6:30

2

I use PHP8, Symfony 5.2 and Doctrine 3.0 in my project, But the PHP 8 attributes, allowed since Doctrine 2.9, doesn't seem to work. use Doctrine\ORM\Mapping\Entity; ** * @Entity(repositoryClass=&q...
Poetry asked 16/4, 2021 at 14:16

1

Solved

I'm a little confused as to the "right" way to retrieve the current session object within a controller in Symfony 5.3. The current documentation says to typehint an argument as SessionInt...
Hamrah asked 24/6, 2021 at 5:33

2

I currently have the following error with my entity code, and I don't really understand why I am having this problem. I only have it in the page of my create dashboard, while I don't call the image...
Invincible asked 17/1, 2021 at 14:53

3

Solved

As the title says, I'm building an API with Symfony 5. I have some controllers that require different user permissions that I'd like to test, so I decided to create two users with different roles f...
Modernity asked 18/12, 2019 at 9:59

1

I have created a project using command composer create-project symfony/website-skeleton my_project_name I want to install symfony/profiler-pack. Why? Because of that there is no "Debug" t...
Maestoso asked 2/9, 2020 at 18:45

1

Solved

In Symfony 5, I have a ChoiceType in a form and I have 2 choices. I want to put an "other" choice where you can write what you want. I try to put a TextType in the choices. Thanks in adva...
Apophasis asked 21/8, 2020 at 8:16

2

Solved

I have a simple messanger config: framework: messenger: failure_transport: failed transports: async: dsn: '%env(MESSENGER_TRANSPORT_DSN)%' retry_strategy: max_retries: 2 delay: 10000 fail...
Iridaceous asked 28/5, 2020 at 16:22

© 2022 - 2024 — McMap. All rights reserved.