This tag is for questions related with how Drupal utilizes Symfony components.

learn more… | top users | synonyms

1
vote
0answers
34 views

Is it possible to pass Drupal config values as arguments to services?

I'm writing a module that makes calls to a Web service to read and store data. Here's my services.yml file: services: example.connection: class: Drupal\Core\Http\Client I've already got a ...
7
votes
2answers
1k views

With Drupal 8 should I learn Symfony 2 and Drupal for development?

I saw this, How much of Drupal 8 will rely on or be compatible with Symfony? But didn't understand how that applied to my question. What should I do for development in Drupal?
1
vote
1answer
135 views

Is updating the composer.json file & consequently composer.lock in Drupal 8 considered a good practice or hacking the core?

I have been working with another developers on a scaffolding tool for Drupal8 based on Symfony Console component. The current setup process includes updating composer.json using composer CLI: ...
13
votes
1answer
1k views

Why are routing files filled with underscores?

What is the deal with all the parameters with, and without, a prefixed underscore character? Where does Drupal decide how to process these parameters? Was this concept introduced from Symfony, or is ...
4
votes
1answer
132 views

What arguments can I use when defining a service?

Looking at system.services.yaml, I noticed that some of the services arguments are strings starting with @. They seem to contain a reference to another defined service. system.manager: class: ...
2
votes
1answer
37 views

Is there any case where a module needs to implement a class using ServiceProviderInterface?

Drupal defines the CoreServiceProvider class which is used to add the twig, twig.loader.filesystem, and module_handler services. Since the Drupal 8 way to register a service from a module is using ...
4
votes
2answers
414 views

Is it acceptable to modify Drupal's composer.json file?

Drupal adheres to the best-practice of never modifying core. Drupal 8 has a composer.json file built into core, if you need to add a third-party library, should you modify composer.json, or is there ...
5
votes
3answers
289 views

Lime for Drupal 8?

Now that Drupal 8 is going to be based mostly on Symfony, is the TDD/unit-testing going to change too? For Symfony, Lime is the preferred testing-suite. Is that true for Drupal8?
3
votes
1answer
230 views

How much of Drupal 8 will rely on or be compatible with Symfony? [closed]

Now that Drupal 8 is being redeveloped with Symfony, and we are just about to go into the code freeze so that early adopters can start playing with it, what will it affect? Will we be able to write ...
0
votes
1answer
177 views

Symfony2 authentication and Drupal 7

I am currently developing a website using the framework Symfony2. I am nearly at the end of its development, and just the "security" part is missing (authentication and authorization). What I would ...
4
votes
2answers
306 views

Creating Drupal 8 route for AJAX requests

How should I implement a callback to a single Drupal class (in my case it's Transliteration). I don't need a full Drupal load/bootstrap, but one independent class. The purpose of the AJAX code would ...
9
votes
1answer
439 views

How can I install composer packages with drush make?

How does one include composer package in a drush make file? The more general answer, the better. There's already a composer drush module allowing drush dl to handle composer packages, but that ...