Questions tagged [symfony-3.4]

This is the Symfony 3.4.x specific tag. Use it in addition to the symfony3 tag if your question is specific to Symfony 3.4.x — not just 3.x.

Symfony is a PHP full-stack web framework developed and maintained by Sensio Labs.

Information

This tag is specific for the 3.4 version of Symfony. See the tag for general Symfony 3.x questions.

The 3.4.0 version was released on the 30th November 2017 as long term support version of Symfony.

Living on the edge

There are a set of interesting links on the symfony blog about what's new in this version:

929 questions
43
votes
5 answers

How to configure PhpStorm to use symfony/phpunit-bridge

I had problems with configuring PhpStorm IDE to use http://symfony.com/doc/current/components/phpunit_bridge.html while working with Symfony 3.3. I decided to just download phpunit.phar to bin and use it instead. Symfony 3.4 (and Symfony 4), does…
my-nick
  • 691
  • 1
  • 5
  • 11
31
votes
1 answer

findBy with multiple IDs

In my quest to edit data from the inverse side of a ManyToOne - OneToMany relation, and to avoid fetching the whole table's content, I want to fetch data from a list of IDs. While this would work, $data=array(); foreach($idList as $id) { …
Preciel
  • 2,666
  • 3
  • 20
  • 45
28
votes
11 answers

Symfony 3.4.0 Could not find any fixture services to load

I am using Symfony 3.4.0, I try to load fixtures with: php bin/console doctrine:fixtures:load An error occurred while creating the data, what's wrong?
Alexander
  • 311
  • 1
  • 3
  • 6
19
votes
5 answers

Symfony - inject doctrine repository in service

according to How to inject a repository into a service in Symfony2? it's like acme.custom_repository: class: Doctrine\ORM\EntityRepository factory: ['@doctrine.orm.entity_manager', getRepository] arguments: -…
Brucie Alpha
  • 1,135
  • 2
  • 12
  • 31
18
votes
1 answer

Migrate to symfony 4 from symfony 3.4

My project is currently setup with 3.4 version of symfony. I want to move to symfony4. So I moved to symfony4 as per suggestions in http://symfony.com/doc/current/setup/upgrade_major.html. In my current project there are many custom bundles are…
Jigar Pancholi
  • 1,209
  • 1
  • 8
  • 25
14
votes
2 answers

Symfony 3.4 logger service

When I called logger service get this information message in log file it's worked but write this message in the log file: php.INFO: User Deprecated: The "logger" service is private, getting it from the container is deprecated since Symfony 3.2…
A.Seddighi
  • 1,695
  • 1
  • 20
  • 43
13
votes
2 answers

Symfony 3.4 autowire service

Am developing a mini app in Symfony 3.4. Am putting together an authentication process using Guard. I have created a class called LoginFormAuthenticator which extends AbstractFormLoginAuthenticator. Receiving error: Cannot autowire service…
Behzad Lashkari
  • 177
  • 1
  • 9
10
votes
3 answers

Symfony3.4 - Pre filled field on POST_SUBMIT Event

I have a form with a contact list. I want the field "first name" appear with the selected contact value after submit. My problem is that the field appear but I cant set the good data, the field always remains empty. public function…
arno
  • 792
  • 14
  • 33
9
votes
1 answer

FOSUserBundle managing In EasyAdminBundle(( The "User" entity must define its associated Doctrine entity class using the "class" option))Symfony

I am using Symfony 3.4 with FOSUserBundle~2.0 and EasyAdminBundle^1.17.everything works fine.i can login to system and create user ((ofcourse with commend line)) i using this toutaril but when i want to managing in EasyAdminBundle.i have this error …
pedram shabani
  • 1,654
  • 2
  • 20
  • 30
9
votes
2 answers

Symfony 3.4 Use view inside my bundle

I've some trouble for the configuration of a new repository using Symfony 3.4. I've used the symfony command for create him with last LTS (3.4) and I add a new Bundle using command too. My new Bundle is up and work well but I can't use view stored…
David Allios
  • 187
  • 1
  • 1
  • 5
8
votes
1 answer

Symfony - use service from another bundle

I am attempting to use a service from another bundle, without creating any dependencies between the bundles. I'm trying to use CompilerPass but this might not be the best method. I have created a ParamConverter in BarBundle which FooBundle should…
lookbadgers
  • 988
  • 9
  • 31
8
votes
4 answers

Symfony 3.4: How to get a list of all Deprecated warnings?

I have quite a big project in Symfony 3.4 and I wish to update to Symfony 4. And I get a lot of deprecation warnings. Which is ok I need to fix those, but I cant check each route for my site... there is too many. Is there a way to get all the…
NaGeL182
  • 894
  • 1
  • 13
  • 35
8
votes
1 answer

symfony: How to set configuration parameters files for different environments?

How to setup a different configuration parameters file for each environment? At the moment parameters in parameters.yml are used in both dev and prod environment, but I need different parameters in order to deploy my app in prod.
user3174311
  • 1,714
  • 5
  • 28
  • 66
7
votes
3 answers

Symfony 3.4 session time

In my Symfony 3.4 application, the user is automatically logged out after a certain period of time. I want to change this behaviour and make my application never log out automatically. It should log out the session only when the user clicks on the…
7
votes
2 answers

RuntimeException : Unable to guess the Kernel directory

I am using Symfony 3.4. Suddenly, whenever I try to run my tests (phpunit) in /tests, I get the following error: RuntimeException : Unable to guess the Kernel directory. My test class looks something like: class PaymentCreditTest extends…
Baba Zannah
  • 316
  • 1
  • 3
  • 14
1
2 3
61 62