SlideShare a Scribd company logo
Symfony @ OpenSky
Pablo Godel
Symfony @ OpenSky
What is OpenSky?
Symfony @ OpenSky
What is OpenSky?
• Multiple businesses powered by Symfony:
1. opensky.com
2. dotandbo.com
3. 55mulberry.com
Symfony @ OpenSky
What is OpenSky?
• Multiple businesses powered by Symfony:
1. opensky.com
2. dotandbo.com
3. 55mulberry.com
• +100 employees
Symfony @ OpenSky
What is OpenSky?
• Multiple businesses powered by Symfony:
1. opensky.com
2. dotandbo.com
3. 55mulberry.com
• +100 employees
• Offices all around the world in New York,
Portland, Nashville, Miami, Chico,
Bucharest and Los Angeles
Symfony @ OpenSky
HISTORY
Symfony @ OpenSky
HISTORY
Symfony @ OpenSky
• Early adopter of Symfony2 in 2010 before 2.0
stable was released
History
Symfony @ OpenSky
• Early adopter of Symfony2 in 2010 before 2.0
stable was released
• Migrated from Magento -> symfony1 ->
Symfony2
History
Symfony @ OpenSky
• Early adopter of Symfony2 in 2010 before 2.0
stable was released
• Migrated from Magento -> symfony1 ->
Symfony2
• Aspects of Magento cart utilized throughout
migration process until completely phased
out with proprietary cart/checkout technology
History
Symfony @ OpenSky
THE CURRENT STACK
Symfony @ OpenSky
• Symfony 2.8
• RequireJS + Backbone
• PHP 7.1.10
• MySQL 5.6 + MongoDB 3.2
• Redis
• Varnish + Nginx
• VMWare
• Vagrant + VirtualBox for Dev VMs
The Current Stack
Symfony @ OpenSky
• ~400 Controllers
• +800 Routes
• ~1,900 Services
• 285 Commands
• 374 Entities
• 467 Documents
• 808,532 LoC
• 3,738 Classes
• 156 Interfaces
• 46 Traits
• +10,000 Unit Tests
The Current Stack
Symfony @ OpenSky
The Current Stack
Symfony @ OpenSky
The Current Stack
Symfony @ OpenSky
CODING WORKFLOW
Symfony @ OpenSky
Symfony at OpenSky
GitHub Enterprise
GitHub Enterprise
Coding workflow
Symfony @ OpenSky
• production branch (master)
Coding workflow
Symfony @ OpenSky
• production branch (master)
• feature / fix branches
Coding workflow
Symfony @ OpenSky
• production branch (master)
• feature / fix branches
• Pull Requests linked to JIRA
Coding workflow
Symfony @ OpenSky
• production branch (master)
• feature / fix branches
• Pull Requests linked to JIRA
• Integration with Jenkins for Unit/
Functional Tests
Coding workflow
Symfony @ OpenSky
• production branch (master)
• feature / fix branches
• Pull Requests linked to JIRA
• Integration with Jenkins for Unit/
Functional Tests
• Pre-commit Hooks for php-cs-fixer,
gulp-jshint, gulp-sass-lint
Coding workflow
Symfony @ OpenSky
• Symfony Coding Standards
Coding workflow
Symfony @ OpenSky
• Symfony Coding Standards
• Short Array Syntax
Coding workflow
Symfony @ OpenSky
• Symfony Coding Standards
• Short Array Syntax
• Ordered Use Statements
Coding workflow
Symfony @ OpenSky
• Symfony Coding Standards
• Short Array Syntax
• Ordered Use Statements
• Ensuring an EOL at end of file
Coding workflow
Symfony @ OpenSky
• PHP7 Type-Hints when possible
Coding workflow
Symfony @ OpenSky
• PHP7 Type-Hints when possible
• DocBlocks only when adds clarity
Coding workflow
Symfony @ OpenSky
• PHP7 Type-Hints when possible
• DocBlocks only when adds clarity
• ClassName::class
Coding workflow
Symfony @ OpenSky
• PHP7 Type-Hints when possible
• DocBlocks only when adds clarity
• ClassName::class
• ‘NamespaceClassName’
Coding workflow
Symfony @ OpenSky
• PHP7 Type-Hints when possible
• DocBlocks only when adds clarity
• ClassName::class
• ‘NamespaceClassName’
• In forms use class constant
Coding workflow
Symfony @ OpenSky
• PHP7 Type-Hints when possible
• DocBlocks only when adds clarity
• ClassName::class
• ‘NamespaceClassName’
• In forms use class constant
• $builder->add('name', TextType::class);
Coding workflow
Symfony @ OpenSky
• PHP7 Type-Hints when possible
• DocBlocks only when adds clarity
• ClassName::class
• ‘NamespaceClassName’
• In forms use class constant
• $builder->add('name', TextType::class);
• Always use ‘use’ statement
• $time = new DateTime()
Coding workflow
Symfony @ OpenSky
Before production deployment:
Coding workflow
Symfony @ OpenSky
Before production deployment:
• Peer Reviews using GitHub PRs
Coding workflow
Symfony @ OpenSky
Before production deployment:
• Peer Reviews using GitHub PRs
• 100% test pass (unit & functional)
Coding workflow
Symfony @ OpenSky
Before production deployment:
• Peer Reviews using GitHub PRs
• 100% test pass (unit & functional)
• Integration deploy/testing
Coding workflow
Symfony @ OpenSky
Before production deployment:
• Peer Reviews using GitHub PRs
• 100% test pass (unit & functional)
• Integration deploy/testing
• UA / QA pass (tracked in JIRA)
Coding workflow
Symfony @ OpenSky
SYMFONY BUNDLES
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
Symfony Bundles
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
• MainBundle
Symfony Bundles
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
• MainBundle
• AdminBundle (500+ routes, 300 extra
services in the container)
Symfony Bundles
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
• MainBundle
• AdminBundle (500+ routes, 300 extra
services in the container)
• APIBundle
Symfony Bundles
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
• MainBundle
• AdminBundle (500+ routes, 300 extra
services in the container)
• APIBundle
• 3rd Party Bundles
Symfony Bundles
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
• MainBundle
• AdminBundle (500+ routes, 300 extra
services in the container)
• APIBundle
• 3rd Party Bundles
• AvalancheImagineBundle
Symfony Bundles
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
• MainBundle
• AdminBundle (500+ routes, 300 extra
services in the container)
• APIBundle
• 3rd Party Bundles
• AvalancheImagineBundle
• FOSUserBundle
Symfony Bundles
Symfony @ OpenSky
• Split things into broad bundles. Don’t over
bundle.
• MainBundle
• AdminBundle (500+ routes, 300 extra
services in the container)
• APIBundle
• 3rd Party Bundles
• AvalancheImagineBundle
• FOSUserBundle
• Using 3rd party bundles may impact
maintainability in the long term
Symfony Bundles
Symfony @ OpenSky
DOCTRINE
Symfony @ OpenSky
• MongoDB and MySQL together
Doctrine
Symfony @ OpenSky
• MongoDB and MySQL together
• References between MongoDB and MySQL
Doctrine
Symfony @ OpenSky
• MongoDB and MySQL together
• References between MongoDB and MySQL
• Using the Doctrine ORM & MongoDB ODM to
make the models for the two databases
transparent to the application.
Doctrine
Symfony @ OpenSky
• MongoDB and MySQL together
• References between MongoDB and MySQL
• Using the Doctrine ORM & MongoDB ODM to
make the models for the two databases
transparent to the application.
• Never delete data due to referential integrity
problems. Use soft delete (deletedAt)
Doctrine
Symfony @ OpenSky
• MongoDB and MySQL together
• References between MongoDB and MySQL
• Using the Doctrine ORM & MongoDB ODM to
make the models for the two databases
transparent to the application.
• Never delete data due to referential integrity
problems. Use soft delete (deletedAt)
• Traits for common functionality like createdAt/
updatedAt/deletedAt
Doctrine
Symfony @ OpenSky
Symfony @ OpenSky
• How long did it take to run?
Doctrine Migrations
Symfony @ OpenSky
• How long did it take to run?
• Is it backwards compatible?
Doctrine Migrations
Symfony @ OpenSky
• How long did it take to run?
• Is it backwards compatible?
• Up & Down
Doctrine Migrations
Symfony @ OpenSky
• How long did it take to run?
• Is it backwards compatible?
• Up & Down
• schema.sql / data.sql up-to-date
Doctrine Migrations
Symfony @ OpenSky
• How long did it take to run?
• Is it backwards compatible?
• Up & Down
• schema.sql / data.sql up-to-date
• Add indexes
Doctrine Migrations
Symfony @ OpenSky
• How long did it take to run?
• Is it backwards compatible?
• Up & Down
• schema.sql / data.sql up-to-date
• Add indexes
• Remove data later in separate
migration
Doctrine Migrations
Symfony @ OpenSky
SYMFONY MISC
Symfony @ OpenSky
• Lean
Controllers
Symfony @ OpenSky
• Lean
• No Business Logic
Controllers
Symfony @ OpenSky
• Lean
• No Business Logic
• Only Flow control
Controllers
Symfony @ OpenSky
• Lean
• No Business Logic
• Only Flow control
• Extend Custom BaseController
Controllers
Symfony @ OpenSky
• Two tiers of authentication implemented using role
voters.
Security
Symfony @ OpenSky
• Two tiers of authentication implemented using role
voters.
• PartiallyAuthenticatedVoter
Security
Symfony @ OpenSky
• Two tiers of authentication implemented using role
voters.
• PartiallyAuthenticatedVoter
• AuthenticatedRecentlyVoter
Security
Symfony @ OpenSky
• Two tiers of authentication implemented using role
voters.
• PartiallyAuthenticatedVoter
• AuthenticatedRecentlyVoter
• When a user is recently authenticated, they are logged
in to 2nd tier of authentication and have access to
account, checkout, etc. After 15 minutes of inactivity,
user is logged out of 2nd tier.
Security
Symfony @ OpenSky
• Two tiers of authentication implemented using role
voters.
• PartiallyAuthenticatedVoter
• AuthenticatedRecentlyVoter
• When a user is recently authenticated, they are logged
in to 2nd tier of authentication and have access to
account, checkout, etc. After 15 minutes of inactivity,
user is logged out of 2nd tier.
• Admin integrates with LDAP (using zendframework/
zend-ldap)
Security
Symfony @ OpenSky
• Two tiers of authentication implemented using role
voters.
• PartiallyAuthenticatedVoter
• AuthenticatedRecentlyVoter
• When a user is recently authenticated, they are logged
in to 2nd tier of authentication and have access to
account, checkout, etc. After 15 minutes of inactivity,
user is logged out of 2nd tier.
• Admin integrates with LDAP (using zendframework/
zend-ldap)
• Multiple firewalls/authentication providers for consumer
facing, admin and api.
Security
Symfony @ OpenSky
Runtime Settings/Parameters
• Parameters defined in config/parameters.yml
Symfony @ OpenSky
• Parameters defined in config/parameters.yml
• Override stored in MongoDB
Runtime Settings/Parameters
Symfony @ OpenSky
• Parameters defined in config/parameters.yml
• Override stored in MongoDB
• Parameters can have start & end datetime
Runtime Settings/Parameters
Symfony @ OpenSky
• Parameters defined in config/parameters.yml
• Override stored in MongoDB
• Parameters can have start & end datetime
• All parameters stored in cache
Runtime Settings/Parameters
Symfony @ OpenSky
• Parameters defined in config/parameters.yml
• Override stored in MongoDB
• Parameters can have start & end datetime
• All parameters stored in cache
• When parameter value is changed, cache is
updated and queue workers restarted
Runtime Settings/Parameters
Symfony @ OpenSky
• Parameters defined in config/parameters.yml
• Override stored in MongoDB
• Parameters can have start & end datetime
• All parameters stored in cache
• When parameter value is changed, cache is
updated and queue workers restarted
• Allows for configuration changes without
deployment
Runtime Settings/Parameters
Symfony @ OpenSky
• Parameters defined in config/parameters.yml
• Override stored in MongoDB
• Parameters can have start & end datetime
• All parameters stored in cache
• When parameter value is changed, cache is
updated and queue workers restarted
• Allows for configuration changes without
deployment
• Heavily used for feature flags and enable/
disable of new features
Runtime Settings/Parameters
Symfony @ OpenSky
Runtime Settings/Parameters
Symfony @ OpenSky
Runtime Settings/Parameters
Symfony @ OpenSky
Runtime Settings/Parameters
Symfony @ OpenSky
EVENTS
Symfony @ OpenSky
• Perform tasks after the response has been sent
to client
Event kernel.terminate
Symfony @ OpenSky
• Perform tasks after the response has been sent
to client
• Store Request Log in MongoDB Collection
Event kernel.terminate
Symfony @ OpenSky
• Perform tasks after the response has been sent
to client
• Store Request Log in MongoDB Collection
• Analyze request for further actions
Event kernel.terminate
Symfony @ OpenSky
• Perform tasks after the response has been sent
to client
• Store Request Log in MongoDB Collection
• Analyze request for further actions
• Only effective with FastCGI
Event kernel.terminate
Symfony @ OpenSky
• Queueing events for async functionality
Events system
Symfony @ OpenSky
• Queueing events for async functionality
• Event serializer/unserializer
Events system
Symfony @ OpenSky
• Queueing events for async functionality
• Event serializer/unserializer
• Scheduling events
Events system
Symfony @ OpenSky
• Queueing events for async functionality
• Event serializer/unserializer
• Scheduling events
• Event retries, retry max amount
Events system
Symfony @ OpenSky
• Queueing events for async functionality
• Event serializer/unserializer
• Scheduling events
• Event retries, retry max amount
• One queue per mongodb collection
Events system
Symfony @ OpenSky
• Queueing events for async functionality
• Event serializer/unserializer
• Scheduling events
• Event retries, retry max amount
• One queue per mongodb collection
• Queue workers managed with Supervisord
Events system
Symfony @ OpenSky
Events system
Symfony @ OpenSky
Events system
Symfony @ OpenSky
Events system
Symfony @ OpenSky
Events system
Symfony @ OpenSky
Events system
Symfony @ OpenSky
SLACK
Symfony @ OpenSky
• php-kip using yabot
Slack integration
Symfony @ OpenSky
• php-kip using yabot
• Production deploy queue/line
Slack integration
Symfony @ OpenSky
• php-kip using yabot
• Production deploy queue/line
• Dev environment reservations & deploys
Slack integration
Symfony @ OpenSky
Symfony at OpenSky
Php-kip using yubot
- Production deploy queue/line
- Dev environment deploys
Slack integration
Symfony @ OpenSky
Symfony at OpenSky
Php-kip using yubot
- Production deploy queue/line
- Dev environment deploys
Slack integration
Symfony @ OpenSky
Symfony at OpenSky
Php-kip using yubot
- Production deploy queue/line
- Dev environment deploys
Slack integration
Symfony @ OpenSky
Slack integration
Symfony @ OpenSky
Slack integration
Symfony @ OpenSky
Slack integration
Symfony @ OpenSky
SEARCH
Symfony @ OpenSky
Search
• Integration with Algolia
Symfony @ OpenSky
• Integration with Algolia
• algolia/algoliasearch-client-php
Search
Symfony @ OpenSky
• Integration with Algolia
• algolia/algoliasearch-client-php
• Update index through async Event
Listeners
Search
Symfony @ OpenSky
Payments
• Integration with Braintree Payments
• braintree/braintree_php
Symfony @ OpenSky
• NPM
• jQuery
• RequireJS
• Backbone
• TwigJS
• Gulp / Less / Sass
The Frontend
Symfony @ OpenSky
• A/B Split Testing using Optimizely for
testing UI/UX changes
• Send small % of traffic to new features
• GoogleAnalytics tracking conversion rate
The Frontend
Symfony @ OpenSky
TESTING
Symfony @ OpenSky
• pr-nightmare
Testing
Symfony @ OpenSky
• pr-nightmare
• Runs on all commits and pull requests
Testing
Symfony @ OpenSky
• pr-nightmare
• Runs on all commits and pull requests
• Uses PHPChunkit to run 30 minutes of tests in 3
minutes by running groups of tests in parallel
across multiple servers. 

https://github.com/jwage/phpchunkit
Testing
Symfony @ OpenSky
• pr-nightmare
• Runs on all commits and pull requests
• Uses PHPChunkit to run 30 minutes of tests in 3
minutes by running groups of tests in parallel
across multiple servers. 

https://github.com/jwage/phpchunkit
• Selenium for browser functional testing
Testing
Symfony @ OpenSky
Testing
Symfony @ OpenSky
• ‘@app admin’ annotation to indicate web test
cases which app/kernel to boot up
Testing with PHPUnit
Symfony @ OpenSky
• ‘@app admin’ annotation to indicate web test
cases which app/kernel to boot up
• AutoDataCleanupListener keeps tracks of what
collections and tables were inserted to in a test
and cleans up afterwards. This used to be
explicitly required by the developer but happens
automatically now
Testing with PHPUnit
Symfony @ OpenSky
• ‘@app admin’ annotation to indicate web test
cases which app/kernel to boot up
• AutoDataCleanupListener keeps tracks of what
collections and tables were inserted to in a test
and cleans up afterwards. This used to be
explicitly required by the developer but happens
automatically now
• AbstractTwigLintTest: Twig linting. Loads up all twig
files to make sure there are no parse errors
Testing with PHPUnit
Symfony @ OpenSky
• ‘@app admin’ annotation to indicate web test
cases which app/kernel to boot up
• AutoDataCleanupListener keeps tracks of what
collections and tables were inserted to in a test
and cleans up afterwards. This used to be
explicitly required by the developer but happens
automatically now
• AbstractTwigLintTest: Twig linting. Loads up all twig
files to make sure there are no parse errors
• Generating unit tests from class definitions
Testing with PHPUnit
Symfony @ OpenSky
• ‘@app admin’ annotation to indicate web test
cases which app/kernel to boot up
• AutoDataCleanupListener keeps tracks of what
collections and tables were inserted to in a test
and cleans up afterwards. This used to be
explicitly required by the developer but happens
automatically now
• AbstractTwigLintTest: Twig linting. Loads up all twig
files to make sure there are no parse errors
• Generating unit tests from class definitions
• PHPUnit watch command
Testing with PHPUnit
Symfony @ OpenSky
Testing with PHPUnit
Symfony @ OpenSky
Testing with PHPUnit
Symfony @ OpenSky
PHPUnit watch
Symfony @ OpenSky
PHPUnit watch
Symfony @ OpenSky
PHPUnit watch
Symfony @ OpenSky
PHPUnit watch
Symfony @ OpenSky
Twig Lint with PHPUnit
Symfony @ OpenSky
Twig Lint with PHPUnit
Symfony @ OpenSky
Twig Lint with PHPUnit
Symfony @ OpenSky
DEPLOYMENT
Symfony @ OpenSky
Deployment
• Use Customized Fabric
• Manually started from Jenkins
• First build task
• Merge feature/fix branch into
master
• Create Tag
Symfony @ OpenSky
• Final build task
• git checkout
• composer install --no-dev —no-scripts
• Build front controller
• Run gulp, requires, less, sass
• Warmup cache for each app
• Assetic dump
• Build artifacts file & distribute it to
servers
• Run MySQL & MongoDB Migrations
• Rotate logs
• Restart php-fpm
• Reload Varnish and nginx
• Restart queue workers
Deployment
• Use Customized Fabric
• Manually started from Jenkins
• First build task
• Merge feature/fix branch into
master
• Create Tag
Symfony @ OpenSky
Questions?
Symfony @ OpenSky
Thank you!
Pablo Godel
@pgodel
http://slideshare.net/pgodel https://joind.in/talk/bfd1e

More Related Content

PDF
Symfony Live San Franciso 2017 - BDD API Development with Symfony and Behat
PDF
SymfonyCon Cluj 2017 - Symfony at OpenSky
PDF
Merging two big Symfony based applications - SymfonyCon 2017
PDF
Console Apps: php artisan forthe:win
PDF
Rails on HBase
PDF
All the Laravel things: up and running to making $$
PDF
Working with Git
PDF
Symfony 4: A new way to develop applications #ipc19
Symfony Live San Franciso 2017 - BDD API Development with Symfony and Behat
SymfonyCon Cluj 2017 - Symfony at OpenSky
Merging two big Symfony based applications - SymfonyCon 2017
Console Apps: php artisan forthe:win
Rails on HBase
All the Laravel things: up and running to making $$
Working with Git
Symfony 4: A new way to develop applications #ipc19

What's hot (20)

KEY
Advanced Server Integration with Data and Direct
PDF
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
PDF
ColdFusion builder plugins
PDF
Symfony2: Get your project started
PDF
Composer Power User Tips
PDF
Symfony 4: A new way to develop applications #phpsrb
PDF
An Introduction to the Laravel Framework (AFUP Forum PHP 2014)
KEY
MVC Gems
PDF
php[world] 2015 Training - Laravel from the Ground Up
PDF
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
PDF
Digpen 7: Why choose Laravel?
PDF
Master the New Core of Drupal 8 Now: with Symfony and Silex
PPTX
What's New in Laravel 5 (Laravel Meetup - 23th Apr 15, Yogyakarta, ID)
PDF
XebiCon'16 : Fastlane : Automatisez votre vie (de développeur iOS) Par Jean-...
KEY
Joomla! Day Poland 2012 - Advanced Akeeba Backup - Beyond just backing up you...
PDF
Knowing Laravel 5 : The most popular PHP framework
PPTX
Saving Time By Testing With Jest
PDF
Php Dependency Management with Composer ZendCon 2016
PDF
Avik_RailsTutorial
PDF
Automated deployments using envoy by John Blackmore
Advanced Server Integration with Data and Direct
Grand Rapids PHP Meetup: Behavioral Driven Development with Behat
ColdFusion builder plugins
Symfony2: Get your project started
Composer Power User Tips
Symfony 4: A new way to develop applications #phpsrb
An Introduction to the Laravel Framework (AFUP Forum PHP 2014)
MVC Gems
php[world] 2015 Training - Laravel from the Ground Up
php[world] 2015 Laravel 5.1: From Homestead to the Cloud
Digpen 7: Why choose Laravel?
Master the New Core of Drupal 8 Now: with Symfony and Silex
What's New in Laravel 5 (Laravel Meetup - 23th Apr 15, Yogyakarta, ID)
XebiCon'16 : Fastlane : Automatisez votre vie (de développeur iOS) Par Jean-...
Joomla! Day Poland 2012 - Advanced Akeeba Backup - Beyond just backing up you...
Knowing Laravel 5 : The most popular PHP framework
Saving Time By Testing With Jest
Php Dependency Management with Composer ZendCon 2016
Avik_RailsTutorial
Automated deployments using envoy by John Blackmore
Ad

Similar to Symfony Live San Francisco 2017 - Symfony @ OpenSky (20)

PDF
Scaling symfony apps
PDF
Symfony2 - from the trenches
PDF
Scaling PHP apps
PDF
The journey of a symfony app from 150ms to 20ms
PPTX
A soa approximation on symfony
PPTX
A SOA approximation on symfony
PDF
Symfony2 from the Trenches
ODP
An introduction to Symfony 2 for symfony 1 developers
KEY
The use of Symfony2 @ Overblog
PDF
Hopping in clouds - phpuk 17
PDF
Symfony metabook 2.0
PDF
Symfony War Stories
PDF
Build powerfull and smart web applications with Symfony2
PPTX
PHP Symfony MicroServices Migration @MeeticTech
PDF
Improve your web and app development with the Symfony3 framework.
PDF
Introducing symfony
PDF
Symfony Performance
PDF
Symfony2 San Francisco Meetup 2009
PDF
Comment améliorer le quotidien des Développeurs PHP ?
PPTX
Things Your Mother Didn't Tell You About Bundle Configurations - Symfony Live...
 
Scaling symfony apps
Symfony2 - from the trenches
Scaling PHP apps
The journey of a symfony app from 150ms to 20ms
A soa approximation on symfony
A SOA approximation on symfony
Symfony2 from the Trenches
An introduction to Symfony 2 for symfony 1 developers
The use of Symfony2 @ Overblog
Hopping in clouds - phpuk 17
Symfony metabook 2.0
Symfony War Stories
Build powerfull and smart web applications with Symfony2
PHP Symfony MicroServices Migration @MeeticTech
Improve your web and app development with the Symfony3 framework.
Introducing symfony
Symfony Performance
Symfony2 San Francisco Meetup 2009
Comment améliorer le quotidien des Développeurs PHP ?
Things Your Mother Didn't Tell You About Bundle Configurations - Symfony Live...
 
Ad

More from Pablo Godel (20)

PDF
DeSymfony 2017 - Symfony en OpenSky
PDF
Deploying Symfony | symfony.cat
PDF
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
PDF
La Caja de Herramientas del Desarrollador Moderno PHPConferenceAR
PDF
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
PDF
The Modern Developer Toolbox
PDF
PHP Conference Argentina 2013 - Independizate de tu departamento IT - Habilid...
PDF
PHP Conference Argentina 2013 - Deployment de aplicaciones PHP a prueba de balas
PDF
php[architect] Summit Series DevOps 2013 - Rock solid deployment of PHP apps
PDF
Lone Star PHP 2013 - Sysadmin Skills for PHP Developers
PDF
Lone StarPHP 2013 - Building Web Apps from a New Angle
PDF
deSymfony 2013 - Creando aplicaciones web desde otro ángulo con Symfony y A...
PDF
Creating Mobile Apps With PHP & Symfony2
PDF
Tek13 - Creating Mobile Apps with PHP and Symfony
PDF
Tek 2013 - Building Web Apps from a New Angle with AngularJS
PDF
Soflophp 2013 - SysAdmin skills for PHP developers
PDF
Symfony2 and MongoDB - MidwestPHP 2013
PDF
Rock Solid Deployment of Web Applications
PDF
Codeworks'12 Rock Solid Deployment of PHP Apps
PDF
PFCongres 2012 - Rock Solid Deployment of PHP Apps
DeSymfony 2017 - Symfony en OpenSky
Deploying Symfony | symfony.cat
SymfonyCon Madrid 2014 - Rock Solid Deployment of Symfony Apps
La Caja de Herramientas del Desarrollador Moderno PHPConferenceAR
Symfony Live NYC 2014 - Rock Solid Deployment of Symfony Apps
The Modern Developer Toolbox
PHP Conference Argentina 2013 - Independizate de tu departamento IT - Habilid...
PHP Conference Argentina 2013 - Deployment de aplicaciones PHP a prueba de balas
php[architect] Summit Series DevOps 2013 - Rock solid deployment of PHP apps
Lone Star PHP 2013 - Sysadmin Skills for PHP Developers
Lone StarPHP 2013 - Building Web Apps from a New Angle
deSymfony 2013 - Creando aplicaciones web desde otro ángulo con Symfony y A...
Creating Mobile Apps With PHP & Symfony2
Tek13 - Creating Mobile Apps with PHP and Symfony
Tek 2013 - Building Web Apps from a New Angle with AngularJS
Soflophp 2013 - SysAdmin skills for PHP developers
Symfony2 and MongoDB - MidwestPHP 2013
Rock Solid Deployment of Web Applications
Codeworks'12 Rock Solid Deployment of PHP Apps
PFCongres 2012 - Rock Solid Deployment of PHP Apps

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The AUB Centre for AI in Media Proposal.docx
Per capita expenditure prediction using model stacking based on satellite ima...
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Dropbox Q2 2025 Financial Results & Investor Presentation
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Understanding_Digital_Forensics_Presentation.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Programs and apps: productivity, graphics, security and other tools
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine learning based COVID-19 study performance prediction

Symfony Live San Francisco 2017 - Symfony @ OpenSky

  • 3. Symfony @ OpenSky What is OpenSky? • Multiple businesses powered by Symfony: 1. opensky.com 2. dotandbo.com 3. 55mulberry.com
  • 4. Symfony @ OpenSky What is OpenSky? • Multiple businesses powered by Symfony: 1. opensky.com 2. dotandbo.com 3. 55mulberry.com • +100 employees
  • 5. Symfony @ OpenSky What is OpenSky? • Multiple businesses powered by Symfony: 1. opensky.com 2. dotandbo.com 3. 55mulberry.com • +100 employees • Offices all around the world in New York, Portland, Nashville, Miami, Chico, Bucharest and Los Angeles
  • 8. Symfony @ OpenSky • Early adopter of Symfony2 in 2010 before 2.0 stable was released History
  • 9. Symfony @ OpenSky • Early adopter of Symfony2 in 2010 before 2.0 stable was released • Migrated from Magento -> symfony1 -> Symfony2 History
  • 10. Symfony @ OpenSky • Early adopter of Symfony2 in 2010 before 2.0 stable was released • Migrated from Magento -> symfony1 -> Symfony2 • Aspects of Magento cart utilized throughout migration process until completely phased out with proprietary cart/checkout technology History
  • 11. Symfony @ OpenSky THE CURRENT STACK
  • 12. Symfony @ OpenSky • Symfony 2.8 • RequireJS + Backbone • PHP 7.1.10 • MySQL 5.6 + MongoDB 3.2 • Redis • Varnish + Nginx • VMWare • Vagrant + VirtualBox for Dev VMs The Current Stack
  • 13. Symfony @ OpenSky • ~400 Controllers • +800 Routes • ~1,900 Services • 285 Commands • 374 Entities • 467 Documents • 808,532 LoC • 3,738 Classes • 156 Interfaces • 46 Traits • +10,000 Unit Tests The Current Stack
  • 14. Symfony @ OpenSky The Current Stack
  • 15. Symfony @ OpenSky The Current Stack
  • 17. Symfony @ OpenSky Symfony at OpenSky GitHub Enterprise GitHub Enterprise Coding workflow
  • 18. Symfony @ OpenSky • production branch (master) Coding workflow
  • 19. Symfony @ OpenSky • production branch (master) • feature / fix branches Coding workflow
  • 20. Symfony @ OpenSky • production branch (master) • feature / fix branches • Pull Requests linked to JIRA Coding workflow
  • 21. Symfony @ OpenSky • production branch (master) • feature / fix branches • Pull Requests linked to JIRA • Integration with Jenkins for Unit/ Functional Tests Coding workflow
  • 22. Symfony @ OpenSky • production branch (master) • feature / fix branches • Pull Requests linked to JIRA • Integration with Jenkins for Unit/ Functional Tests • Pre-commit Hooks for php-cs-fixer, gulp-jshint, gulp-sass-lint Coding workflow
  • 23. Symfony @ OpenSky • Symfony Coding Standards Coding workflow
  • 24. Symfony @ OpenSky • Symfony Coding Standards • Short Array Syntax Coding workflow
  • 25. Symfony @ OpenSky • Symfony Coding Standards • Short Array Syntax • Ordered Use Statements Coding workflow
  • 26. Symfony @ OpenSky • Symfony Coding Standards • Short Array Syntax • Ordered Use Statements • Ensuring an EOL at end of file Coding workflow
  • 27. Symfony @ OpenSky • PHP7 Type-Hints when possible Coding workflow
  • 28. Symfony @ OpenSky • PHP7 Type-Hints when possible • DocBlocks only when adds clarity Coding workflow
  • 29. Symfony @ OpenSky • PHP7 Type-Hints when possible • DocBlocks only when adds clarity • ClassName::class Coding workflow
  • 30. Symfony @ OpenSky • PHP7 Type-Hints when possible • DocBlocks only when adds clarity • ClassName::class • ‘NamespaceClassName’ Coding workflow
  • 31. Symfony @ OpenSky • PHP7 Type-Hints when possible • DocBlocks only when adds clarity • ClassName::class • ‘NamespaceClassName’ • In forms use class constant Coding workflow
  • 32. Symfony @ OpenSky • PHP7 Type-Hints when possible • DocBlocks only when adds clarity • ClassName::class • ‘NamespaceClassName’ • In forms use class constant • $builder->add('name', TextType::class); Coding workflow
  • 33. Symfony @ OpenSky • PHP7 Type-Hints when possible • DocBlocks only when adds clarity • ClassName::class • ‘NamespaceClassName’ • In forms use class constant • $builder->add('name', TextType::class); • Always use ‘use’ statement • $time = new DateTime() Coding workflow
  • 34. Symfony @ OpenSky Before production deployment: Coding workflow
  • 35. Symfony @ OpenSky Before production deployment: • Peer Reviews using GitHub PRs Coding workflow
  • 36. Symfony @ OpenSky Before production deployment: • Peer Reviews using GitHub PRs • 100% test pass (unit & functional) Coding workflow
  • 37. Symfony @ OpenSky Before production deployment: • Peer Reviews using GitHub PRs • 100% test pass (unit & functional) • Integration deploy/testing Coding workflow
  • 38. Symfony @ OpenSky Before production deployment: • Peer Reviews using GitHub PRs • 100% test pass (unit & functional) • Integration deploy/testing • UA / QA pass (tracked in JIRA) Coding workflow
  • 40. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. Symfony Bundles
  • 41. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. • MainBundle Symfony Bundles
  • 42. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. • MainBundle • AdminBundle (500+ routes, 300 extra services in the container) Symfony Bundles
  • 43. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. • MainBundle • AdminBundle (500+ routes, 300 extra services in the container) • APIBundle Symfony Bundles
  • 44. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. • MainBundle • AdminBundle (500+ routes, 300 extra services in the container) • APIBundle • 3rd Party Bundles Symfony Bundles
  • 45. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. • MainBundle • AdminBundle (500+ routes, 300 extra services in the container) • APIBundle • 3rd Party Bundles • AvalancheImagineBundle Symfony Bundles
  • 46. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. • MainBundle • AdminBundle (500+ routes, 300 extra services in the container) • APIBundle • 3rd Party Bundles • AvalancheImagineBundle • FOSUserBundle Symfony Bundles
  • 47. Symfony @ OpenSky • Split things into broad bundles. Don’t over bundle. • MainBundle • AdminBundle (500+ routes, 300 extra services in the container) • APIBundle • 3rd Party Bundles • AvalancheImagineBundle • FOSUserBundle • Using 3rd party bundles may impact maintainability in the long term Symfony Bundles
  • 49. Symfony @ OpenSky • MongoDB and MySQL together Doctrine
  • 50. Symfony @ OpenSky • MongoDB and MySQL together • References between MongoDB and MySQL Doctrine
  • 51. Symfony @ OpenSky • MongoDB and MySQL together • References between MongoDB and MySQL • Using the Doctrine ORM & MongoDB ODM to make the models for the two databases transparent to the application. Doctrine
  • 52. Symfony @ OpenSky • MongoDB and MySQL together • References between MongoDB and MySQL • Using the Doctrine ORM & MongoDB ODM to make the models for the two databases transparent to the application. • Never delete data due to referential integrity problems. Use soft delete (deletedAt) Doctrine
  • 53. Symfony @ OpenSky • MongoDB and MySQL together • References between MongoDB and MySQL • Using the Doctrine ORM & MongoDB ODM to make the models for the two databases transparent to the application. • Never delete data due to referential integrity problems. Use soft delete (deletedAt) • Traits for common functionality like createdAt/ updatedAt/deletedAt Doctrine
  • 55. Symfony @ OpenSky • How long did it take to run? Doctrine Migrations
  • 56. Symfony @ OpenSky • How long did it take to run? • Is it backwards compatible? Doctrine Migrations
  • 57. Symfony @ OpenSky • How long did it take to run? • Is it backwards compatible? • Up & Down Doctrine Migrations
  • 58. Symfony @ OpenSky • How long did it take to run? • Is it backwards compatible? • Up & Down • schema.sql / data.sql up-to-date Doctrine Migrations
  • 59. Symfony @ OpenSky • How long did it take to run? • Is it backwards compatible? • Up & Down • schema.sql / data.sql up-to-date • Add indexes Doctrine Migrations
  • 60. Symfony @ OpenSky • How long did it take to run? • Is it backwards compatible? • Up & Down • schema.sql / data.sql up-to-date • Add indexes • Remove data later in separate migration Doctrine Migrations
  • 62. Symfony @ OpenSky • Lean Controllers
  • 63. Symfony @ OpenSky • Lean • No Business Logic Controllers
  • 64. Symfony @ OpenSky • Lean • No Business Logic • Only Flow control Controllers
  • 65. Symfony @ OpenSky • Lean • No Business Logic • Only Flow control • Extend Custom BaseController Controllers
  • 66. Symfony @ OpenSky • Two tiers of authentication implemented using role voters. Security
  • 67. Symfony @ OpenSky • Two tiers of authentication implemented using role voters. • PartiallyAuthenticatedVoter Security
  • 68. Symfony @ OpenSky • Two tiers of authentication implemented using role voters. • PartiallyAuthenticatedVoter • AuthenticatedRecentlyVoter Security
  • 69. Symfony @ OpenSky • Two tiers of authentication implemented using role voters. • PartiallyAuthenticatedVoter • AuthenticatedRecentlyVoter • When a user is recently authenticated, they are logged in to 2nd tier of authentication and have access to account, checkout, etc. After 15 minutes of inactivity, user is logged out of 2nd tier. Security
  • 70. Symfony @ OpenSky • Two tiers of authentication implemented using role voters. • PartiallyAuthenticatedVoter • AuthenticatedRecentlyVoter • When a user is recently authenticated, they are logged in to 2nd tier of authentication and have access to account, checkout, etc. After 15 minutes of inactivity, user is logged out of 2nd tier. • Admin integrates with LDAP (using zendframework/ zend-ldap) Security
  • 71. Symfony @ OpenSky • Two tiers of authentication implemented using role voters. • PartiallyAuthenticatedVoter • AuthenticatedRecentlyVoter • When a user is recently authenticated, they are logged in to 2nd tier of authentication and have access to account, checkout, etc. After 15 minutes of inactivity, user is logged out of 2nd tier. • Admin integrates with LDAP (using zendframework/ zend-ldap) • Multiple firewalls/authentication providers for consumer facing, admin and api. Security
  • 72. Symfony @ OpenSky Runtime Settings/Parameters • Parameters defined in config/parameters.yml
  • 73. Symfony @ OpenSky • Parameters defined in config/parameters.yml • Override stored in MongoDB Runtime Settings/Parameters
  • 74. Symfony @ OpenSky • Parameters defined in config/parameters.yml • Override stored in MongoDB • Parameters can have start & end datetime Runtime Settings/Parameters
  • 75. Symfony @ OpenSky • Parameters defined in config/parameters.yml • Override stored in MongoDB • Parameters can have start & end datetime • All parameters stored in cache Runtime Settings/Parameters
  • 76. Symfony @ OpenSky • Parameters defined in config/parameters.yml • Override stored in MongoDB • Parameters can have start & end datetime • All parameters stored in cache • When parameter value is changed, cache is updated and queue workers restarted Runtime Settings/Parameters
  • 77. Symfony @ OpenSky • Parameters defined in config/parameters.yml • Override stored in MongoDB • Parameters can have start & end datetime • All parameters stored in cache • When parameter value is changed, cache is updated and queue workers restarted • Allows for configuration changes without deployment Runtime Settings/Parameters
  • 78. Symfony @ OpenSky • Parameters defined in config/parameters.yml • Override stored in MongoDB • Parameters can have start & end datetime • All parameters stored in cache • When parameter value is changed, cache is updated and queue workers restarted • Allows for configuration changes without deployment • Heavily used for feature flags and enable/ disable of new features Runtime Settings/Parameters
  • 79. Symfony @ OpenSky Runtime Settings/Parameters
  • 80. Symfony @ OpenSky Runtime Settings/Parameters
  • 81. Symfony @ OpenSky Runtime Settings/Parameters
  • 83. Symfony @ OpenSky • Perform tasks after the response has been sent to client Event kernel.terminate
  • 84. Symfony @ OpenSky • Perform tasks after the response has been sent to client • Store Request Log in MongoDB Collection Event kernel.terminate
  • 85. Symfony @ OpenSky • Perform tasks after the response has been sent to client • Store Request Log in MongoDB Collection • Analyze request for further actions Event kernel.terminate
  • 86. Symfony @ OpenSky • Perform tasks after the response has been sent to client • Store Request Log in MongoDB Collection • Analyze request for further actions • Only effective with FastCGI Event kernel.terminate
  • 87. Symfony @ OpenSky • Queueing events for async functionality Events system
  • 88. Symfony @ OpenSky • Queueing events for async functionality • Event serializer/unserializer Events system
  • 89. Symfony @ OpenSky • Queueing events for async functionality • Event serializer/unserializer • Scheduling events Events system
  • 90. Symfony @ OpenSky • Queueing events for async functionality • Event serializer/unserializer • Scheduling events • Event retries, retry max amount Events system
  • 91. Symfony @ OpenSky • Queueing events for async functionality • Event serializer/unserializer • Scheduling events • Event retries, retry max amount • One queue per mongodb collection Events system
  • 92. Symfony @ OpenSky • Queueing events for async functionality • Event serializer/unserializer • Scheduling events • Event retries, retry max amount • One queue per mongodb collection • Queue workers managed with Supervisord Events system
  • 99. Symfony @ OpenSky • php-kip using yabot Slack integration
  • 100. Symfony @ OpenSky • php-kip using yabot • Production deploy queue/line Slack integration
  • 101. Symfony @ OpenSky • php-kip using yabot • Production deploy queue/line • Dev environment reservations & deploys Slack integration
  • 102. Symfony @ OpenSky Symfony at OpenSky Php-kip using yubot - Production deploy queue/line - Dev environment deploys Slack integration
  • 103. Symfony @ OpenSky Symfony at OpenSky Php-kip using yubot - Production deploy queue/line - Dev environment deploys Slack integration
  • 104. Symfony @ OpenSky Symfony at OpenSky Php-kip using yubot - Production deploy queue/line - Dev environment deploys Slack integration
  • 105. Symfony @ OpenSky Slack integration
  • 106. Symfony @ OpenSky Slack integration
  • 107. Symfony @ OpenSky Slack integration
  • 109. Symfony @ OpenSky Search • Integration with Algolia
  • 110. Symfony @ OpenSky • Integration with Algolia • algolia/algoliasearch-client-php Search
  • 111. Symfony @ OpenSky • Integration with Algolia • algolia/algoliasearch-client-php • Update index through async Event Listeners Search
  • 112. Symfony @ OpenSky Payments • Integration with Braintree Payments • braintree/braintree_php
  • 113. Symfony @ OpenSky • NPM • jQuery • RequireJS • Backbone • TwigJS • Gulp / Less / Sass The Frontend
  • 114. Symfony @ OpenSky • A/B Split Testing using Optimizely for testing UI/UX changes • Send small % of traffic to new features • GoogleAnalytics tracking conversion rate The Frontend
  • 116. Symfony @ OpenSky • pr-nightmare Testing
  • 117. Symfony @ OpenSky • pr-nightmare • Runs on all commits and pull requests Testing
  • 118. Symfony @ OpenSky • pr-nightmare • Runs on all commits and pull requests • Uses PHPChunkit to run 30 minutes of tests in 3 minutes by running groups of tests in parallel across multiple servers. 
 https://github.com/jwage/phpchunkit Testing
  • 119. Symfony @ OpenSky • pr-nightmare • Runs on all commits and pull requests • Uses PHPChunkit to run 30 minutes of tests in 3 minutes by running groups of tests in parallel across multiple servers. 
 https://github.com/jwage/phpchunkit • Selenium for browser functional testing Testing
  • 121. Symfony @ OpenSky • ‘@app admin’ annotation to indicate web test cases which app/kernel to boot up Testing with PHPUnit
  • 122. Symfony @ OpenSky • ‘@app admin’ annotation to indicate web test cases which app/kernel to boot up • AutoDataCleanupListener keeps tracks of what collections and tables were inserted to in a test and cleans up afterwards. This used to be explicitly required by the developer but happens automatically now Testing with PHPUnit
  • 123. Symfony @ OpenSky • ‘@app admin’ annotation to indicate web test cases which app/kernel to boot up • AutoDataCleanupListener keeps tracks of what collections and tables were inserted to in a test and cleans up afterwards. This used to be explicitly required by the developer but happens automatically now • AbstractTwigLintTest: Twig linting. Loads up all twig files to make sure there are no parse errors Testing with PHPUnit
  • 124. Symfony @ OpenSky • ‘@app admin’ annotation to indicate web test cases which app/kernel to boot up • AutoDataCleanupListener keeps tracks of what collections and tables were inserted to in a test and cleans up afterwards. This used to be explicitly required by the developer but happens automatically now • AbstractTwigLintTest: Twig linting. Loads up all twig files to make sure there are no parse errors • Generating unit tests from class definitions Testing with PHPUnit
  • 125. Symfony @ OpenSky • ‘@app admin’ annotation to indicate web test cases which app/kernel to boot up • AutoDataCleanupListener keeps tracks of what collections and tables were inserted to in a test and cleans up afterwards. This used to be explicitly required by the developer but happens automatically now • AbstractTwigLintTest: Twig linting. Loads up all twig files to make sure there are no parse errors • Generating unit tests from class definitions • PHPUnit watch command Testing with PHPUnit
  • 126. Symfony @ OpenSky Testing with PHPUnit
  • 127. Symfony @ OpenSky Testing with PHPUnit
  • 132. Symfony @ OpenSky Twig Lint with PHPUnit
  • 133. Symfony @ OpenSky Twig Lint with PHPUnit
  • 134. Symfony @ OpenSky Twig Lint with PHPUnit
  • 136. Symfony @ OpenSky Deployment • Use Customized Fabric • Manually started from Jenkins • First build task • Merge feature/fix branch into master • Create Tag
  • 137. Symfony @ OpenSky • Final build task • git checkout • composer install --no-dev —no-scripts • Build front controller • Run gulp, requires, less, sass • Warmup cache for each app • Assetic dump • Build artifacts file & distribute it to servers • Run MySQL & MongoDB Migrations • Rotate logs • Restart php-fpm • Reload Varnish and nginx • Restart queue workers Deployment • Use Customized Fabric • Manually started from Jenkins • First build task • Merge feature/fix branch into master • Create Tag
  • 139. Symfony @ OpenSky Thank you! Pablo Godel @pgodel http://slideshare.net/pgodel https://joind.in/talk/bfd1e