I am using symfony 3.4 (I know, needs to be upgraded, we are working on it). I have written a shell command to run every month as a cron job. I have the following code: In the uploadInventoryReport method, it connects to an FTP server, uploads a file, and when the file is successfully uploaded, it executes this piece of
Tag: symfony-3.4
How can I change a Symfony exception response code
Symfony 3.4 PHP 7.4 I am trying to map SymfonyComponentHttpFoundationExceptionSuspiciousOperationException to another response code. Basically like Laravel did: https://github.com/laravel/…
Manually hash (i.e. encode) a string value in Symfony 3.4
Is there a way in Symfony 3.4 to use the password encoder without an entity that implements UserInterface? Details I want to hash a random string value in Symfony 3.4. I can always use password_hash, but I’m trying to do this the Symfony way and take advantage of the framework. Here’s where I’m getting stuck: The Symfony Documentation has an
Having issue with Symfony 3 Unit testing that has session enabled
I am new in unit testing. I have Symfony 3 console command application which is using symfony session for temporary data store. In my unit test class I extend KernelTestCase which give me error while I tested it but if I extend SymfonyComponentHttpKernelEventListenerTestSessionListener class then the error gone and passed the test. After some time I realize that it always
Could not find any fixture services to load
i know this question has been asked already multiple times: Symfony 3.4 and Fixtures Bundle issue with bundle version 3.0 Symfony 3.4.0 Could not find any fixture services to load Symfony Doctrine …
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 inside this bundle. I show you the structure of my Bundle :
Semantical Error: Class MailileoBundleEntityMatch has no field or association named getMailid
I went through all similar issues but nothing appears to solve my problem. I’ve put a simple query in my MatchRepository but it throws a semantic error. I’ve double(triple) checked my entity and everything looks fine. It even works fine when I pull all Matches via findAll() and then run a $match->getMailid() The problem appears only in the MatchRepository file.