This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_talks/drupal-vm-meet-symfony-console.md

23 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Drupal VM, Meet Symfony Console
description: How to develop command line applications using Symfony Console, using the Drupal VM CLI as an example.
tags: [conference, php, drupal-vm, symfony]
speakerdeck:
id: 56c79770f73f4e47a542a30243437c49
ratio: '1.37081659973226'
url: https://speakerdeck.com/opdavies/drupal-vm-meet-symfony-console
image: drupal-vm-meet-symfony-console.png
events:
- event: drupalcamp_bristol_16
date: 2016-07-23
---
_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