Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Browsing all 3925 articles
Browse latest View live

Doctrine Extension with API Platform - SQL

I'm working on some API Platform project.I 'm using my API point /references to get some data containing subentities.But the issue is that I use a Doctrine extension to filter my list. Using this...

View Article


Stackdriver multi-channel logging with Symfony/Monolog and Google Kubernetes...

is there a current method to do some multi-channel logging of an Symfony application running on Kubernetes in Google Cloud and having the log channel data collected in Googles Stackdriver?I've found an...

View Article


How to override namespace argument in RedisAdapter for a Symfony4 app to cache

I want to use custom namespace in our RedisAdapter to cache in our Symfony4 app. However, when i want to set arguments like this in our services.yaml;cache.adapter.redis: class:...

View Article

Image may be NSFW.
Clik here to view.

Symfony : How to set nothing as eclosure is CsvEncoder

I'd like to generate a very special CSV with | as delimiter but nothing as enclosure, this is my code :file_put_contents( $filename, $serializer->serialize($data, 'csv', [CsvEncoder::DELIMITER_KEY...

View Article

How to embed images in a symfony mail?

So I designed an email template for my reset-password system.In the email templates, there are Images (logo).I placed those images inside a folder called Email_Images and that folder is placed inside...

View Article


Symfony4/Behat inject function not working "you have requested a non-existen...

For a testcase i need to be able to use an existing service, but this service cannot be used in my behat context:Context:/**class CustomContext extends MinkContext implements KernelAwareContext { # ......

View Article

Sylius Symfony The controller for URI "/_profiler/open" is not callable:...

I'm working with sylius SYMFONY after pulling update from other branch got this error says can't find environment variable STRIPE_PUBLICWhere do I find stripe public?

View Article

Symfony 4.4 Querybuilder exclude all events during a weekend

Got a question, I have a query where I have to exclude events based on their days.I have to eliminate all events where the dateStart occurs during a weekend (Friday from 19:30:00 till Sunday). But for...

View Article


Symfony regex with variables in config .yaml files

I am using host parameter in security firewall configuration:security: firewalls: admin: pattern: ^/ #this works host: ^admin\.test_domain\.test$ #this one does not host:...

View Article


Sonata Admin List Field Template is Ignored

I'm using Symfony 4.1.1 and Sonata Admin Bundle 3.35.2.I want to use a custom template for a field in an admin's list view. The template is ignored. I am using Twig as my templating engine.In the...

View Article

Cleanest way to globally override a Console style

tl;dr: I want to change an output formatter style across my entire Console application without having to modify every command. How can I make a single set of changes that take effect globally?I want to...

View Article

Integrity constraint violation in my api platform relation

Symfony : 4.4API PLATFORM : 2.5 I have to entities : Client & Location : a client have many locations, a location is related to one clientClient Entity: /** *...

View Article

PRESTASHOP, ERROR 4 Start tag expected, '

I was working on my store translation manually thru Cpanel modules. When I finished I went to backoffice to clear cash and I got this error:Fatal error: Uncaught...

View Article


Codeception/Symfony4 Environment variable not found: "DATABASE_URL"

I have a project in Symfony4 with doctrine DB, everything flies.I would like to add some functional and unit testing with Codeception. I followed the docs and added this to my...

View Article

in the tests, after upgrade to symfony4, every request gets a new session

I want to upgrade from symfony 3.4 to 4.4. But directly after this change, many functional tests are broken. Analyzing shows that for every request, I get a new session id, so also a new session. What...

View Article


Apache dont load css [deployment Symfony 4.4 project] [duplicate]

When i set the appache directive DocumentRoot to /var/www/html/foo/public, my css files are loading successfully and everything looks great except that i dont want 'index.php' into my url.But when i...

View Article

Symfony: How can i use Remote procedure call (RPC) with Messenger?

I'm trying to do RPC with Symfony Messenger but I get stuck.Looking at the Messenger component it looks like the implementation has not been...

View Article


EntityType and many to many with extra field relation presented as dropdown...

I created a form like that$builder->add('employees', EntityType::class, ['class' => ActivityEmployee::class,'choice_label' => function (ActivityEmployee $employee) { return sprintf('%s %s',...

View Article

Symfony 4 Forms: implementing per-Entity custom sorting in QueryBuilder for...

I seem to have some troubles getting my head around the intrinsics of the Symfony (4) Form component.I want to:a) store information per-Entity(Repository?) on how the default sort order should be, like...

View Article

How to force symfony form to only display and accept positive integers?

I have the following code:use Symfony\Component\Validator\Constraints\Positive;public function buildForm(FormBuilderInterface $builder, array $options){ $builder ->add('x', IntegerType::class,...

View Article
Browsing all 3925 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>