oliverdavies.uk/source/_talks/drupal-vm-meet-symfony-console.md

26 lines
1.2 KiB
Markdown
Raw Normal View History

2024-01-03 20:00:00 +00:00
---
title: Drupal VM, Meet Symfony Console
description: How to develop command line applications using Symfony Console, using the Drupal VM CLI as an example.
speakerdeck:
2024-02-07 20:01:19 +00:00
id: 56c79770f73f4e47a542a30243437c49
ratio: "1.37081659973226"
url: https://speakerdeck.com/opdavies/drupal-vm-meet-symfony-console
2024-01-03 20:00:00 +00:00
image: drupal-vm-meet-symfony-console.png
events:
2024-02-07 20:01:19 +00:00
-
name: DrupalCamp Bristol 2016
location: Bristol, UK
date: 2016-07-23
2024-01-03 20:00:00 +00:00
---
_TL;DR - Come and learn about Symfony Console, with examples from a real-world
project._
The [Drupal VM Generator][2] is a CLI application, built on [Symfony Console][0], that generates configuration files for [Drupal VM][1] based on personal settings and user interaction.
After an introduction to Drupal VM itself and the Drupal VM Generator, well jump into the code and see how Symfony Console applications are structured, how to write new commands, and how to integrate additional libraries like Guzzle, Twig and other Symfony components - whilst referencing code from the Drupal VM Generator project.
[0]: http://symfony.com/doc/current/components/console/introduction.html
[1]: https://www.drupalvm.com
[2]: https://www.drupalvmgenerator.com