symfony4 Questions

2

Solved

Strange issue in Symfony4: Doctrine works, I can validate the schema, create the database etc using php bin/console doctrine:schema:create. But my PHPUnit test does not have a connection. By runnin...
Applause asked 9/1, 2018 at 15:6

1

I've follow the implementation of filters with annotation to load only the sources concern for one user. Very usefull, work properly. https://api-platform.com/docs/core/filters/#using-doctrine-fil...
Unclassical asked 23/11, 2018 at 19:35

3

I'm trying to update my database with those commands php bin/console make:migration this return success But when I try php bin/console doctrine:migrations:migrate I have this error: WARN...
Noam asked 9/1, 2019 at 8:28

5

When I execute the command: composer require symfony/apache-pack It doesn't create an .htaccess file as it is cited in the documentation here. How can I fix this problem ?
Duvalier asked 14/6, 2019 at 8:52

10

I am tyring to set up symfony4 api JSON login by JWT. The api platform core bundle is installed and I followed this instruction: https://api-platform.com/docs/core/jwt/ I created the custom user pr...
Callboy asked 28/2, 2018 at 8:1

5

Solved

I followed this documentation to add doctrine to my symfony project(v4.2). But when doctrine is installed it deosn't add this line to my project ( in my .env file like mentioned in the doc ): DA...
Lona asked 15/4, 2019 at 10:59

2

Solved

I am starting a new project using Symfony 4 + Flex. At this time I'm trying to connect my new app to a MySQL database. I'm following the Symfony Documentation, and I have already add doctrine to my...
Barahona asked 15/5, 2018 at 9:20

8

I have some syntax errors from symfony vendor when i'm trying to composer install my project. Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) vendor\psr\log\src\LoggerInt...
Galangal asked 6/9, 2021 at 10:19

10

Solved

I've an issue with composer running on a vagrantbox (Centos 7), which started to just suddenly happen. I've already tried manually running the command/solution mentioned on the link below but to n...
Pesade asked 9/4, 2019 at 16:13

4

I'm building an API with API Platform under Symfony4, I want to hide an entity in the doc which is accessible only to the ROLE_ADMIN of the blow no interest to be visible in the doc. Here is the en...
Kamakura asked 9/1, 2019 at 13:49

3

i'm using Symfony 4.2 and i use last WebPack Encore. I have issu because i need to use function from my javascript on my twig template, but this never work. I always have same problem: Uncaug...
Monamonachal asked 14/2, 2019 at 10:33

3

I'm trying to learn how to make phpunit by testing the User class made by "make:user" but i'm facing this problem when extending "KernelTestCase" and run the test : LogicExcept...
Tacitus asked 15/2, 2021 at 20:11

7

Solved

In my .env file, I have specified my app environment to be dev and debug to be true like so: APP_ENV=dev APP_DEBUG=true In my config/packages/dev/web_profiler.yaml file I have the following: we...
Barnie asked 28/10, 2019 at 15:35

5

Solved

I'm trying to send an confirmation email after registration using swiftmailer and office365 server in symfony. I've tried every combination of host,port and encryption type I've come across. Curre...
Coquillage asked 10/9, 2019 at 8:53

5

Solved

I'm upgrading a project from Symfony 3 to Symfony 4 (https://github.com/symfony/symfony/blob/master/UPGRADE-4.0.md) and I have many repository/services like this: namespace App\Entity; use App\E...
Antimissile asked 29/12, 2017 at 14:39

2

I'm working on a Sylius 1.5 project, everything is working fine on my local environment however when deploying to my dev environment I'm getting an error on filtered images (using liip imagine filt...
Hm asked 24/7, 2019 at 15:9

6

Solved

I am migrating our project to Symfony 4. In my test suites, we used PHPUnit for functional tests (I mean, we call endpoints and we check result). Often, we mock services to check different steps. S...
Shipman asked 25/7, 2018 at 13:58

5

Solved

I have migrated an application from Symfony 3.4 to Symfony 4.4. Now I have a lot of deprecations for each request/ Sf command (I can't fix that deprecations). How can I exclude deprecations from ...
Wagram asked 27/12, 2019 at 13:42

2

Solved

My question is how to configure connection to mysql container. Here is my docker-compose.yml version: '3' services: php: build: ./php-fpm volumes: - ./iym:/var/www/iym - ./php-fpm/php.ini:/us...
Lysozyme asked 4/2, 2019 at 21:6

7

Solved

I installed Symfony 4.2 via composer composer create-project Symfony/website-skeleton my-project everything works correctly, then I put the project in gitlab. a friend of mine tried to clone it...
Sabrinasabsay asked 24/2, 2019 at 12:14

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

3

Solved

this is my first post so i'll try to be understandable. I am starting with symfony, and there is a problem i can't resolve alone. This is my controller, and I am working with WAMP. When my Url is &...
Bertram asked 5/3, 2020 at 3:27

10

I am trying to include <link href="{{ asset('css/mystyle.css') }}" rel="stylesheet"/> in my twig file and render it. But it gives me Uncaught PHP Exception Twig_Error_Runtime: "An e...
Declinometer asked 18/7, 2018 at 4:10

4

Solved

I'm trying to return a permanent (301) redirect response from a event subscriber hooked into the kernel events in Synfony PHP. My subscriber is as follow: use Symfony\Component\EventDispatcher\E...
Scud asked 11/11, 2018 at 0:24

2

Solved

New to symfony here I have a two connection setup in my config/packages/doctrine.yaml. Connection 1 is default; //connects to localhost:mysql:root:password:local_db Connection 2 is remote; // co...
Sherrod asked 6/4, 2018 at 17:34

© 2022 - 2024 — McMap. All rights reserved.