migrating to symfony 3.0

68
Sensio Labs Migrating to Symfony 3.0 by @nicolasgrekas

Upload: nicolasgrekas

Post on 08-Feb-2017

7.000 views

Category:

Internet


0 download

TRANSCRIPT

Page 1: Migrating to Symfony 3.0

SensioLabs

Migratingto Symfony 3.0

by @nicolasgrekas

Page 2: Migrating to Symfony 3.0
Page 3: Migrating to Symfony 3.0

Let me tell youhow Symfony 3.0was born

Page 4: Migrating to Symfony 3.0

components

framework+=

Page 5: Migrating to Symfony 3.0

Highest quality

processes=

Page 6: Migrating to Symfony 3.0

Releasing

Page 7: Migrating to Symfony 3.0

Symfony LifecycleRelease

end of support

+8 months +14 months +36 months +48 months

end of security support

end of security support

end of support

Standard Releases(2.4, 2.5, 2.6, 3.0)

LTS Releases(2.3, 2.7, 2.8)

Page 8: Migrating to Symfony 3.0

Semantic Versioning

http://semver.org

Page 9: Migrating to Symfony 3.0

Major

MinorPatch

Page 10: Migrating to Symfony 3.0

•o

o

o

•o

o

•o

o

Page 11: Migrating to Symfony 3.0

One monolithic repo.

+46 synchronized

components

=

Page 12: Migrating to Symfony 3.0

Backward Compatibility

Page 13: Migrating to Symfony 3.0

The Backward Compatibility Promise

http://symfony.com/bc

Page 14: Migrating to Symfony 3.0

Guidelines for Backward Compatibility

Page 15: Migrating to Symfony 3.0

Example: Moving theFlattenException class

Page 16: Migrating to Symfony 3.0

Example: Moving theFlattenException class

Page 17: Migrating to Symfony 3.0

Example: Moving theFlattenException class

Page 18: Migrating to Symfony 3.0

Example: Moving theFlattenException class

Page 19: Migrating to Symfony 3.0

Patching process

Page 20: Migrating to Symfony 3.0

Contribution Workflow

Page 21: Migrating to Symfony 3.0

Patching Symfony 2.3 LTS

Page 22: Migrating to Symfony 3.0

Continuous integration

Page 23: Migrating to Symfony 3.0

Travis Matrix

Page 24: Migrating to Symfony 3.0

Appveyor for Windows

Page 25: Migrating to Symfony 3.0

What’s newin Symfony 3?

Page 26: Migrating to Symfony 3.0

Well... Nothing!

Fabien already told you

Page 27: Migrating to Symfony 3.0

All new features are already included in Symfony 2.8

What’s new in Symfony 3?

Page 28: Migrating to Symfony 3.0

The Symfony 3.0 Architecture

Page 29: Migrating to Symfony 3.0

What’s newin Symfony 3?

Page 30: Migrating to Symfony 3.0

TheContinuous UpgradePath

Page 31: Migrating to Symfony 3.0

The Symfony Core Team Wish!

Page 32: Migrating to Symfony 3.0

Continuous Migration Path Before 2.7

Page 33: Migrating to Symfony 3.0

Continuous Migration Path Since 2.7

Page 34: Migrating to Symfony 3.0

Trigger deprecation notices at run-time

Page 35: Migrating to Symfony 3.0

Trigger deprecation notices at run-time

Page 36: Migrating to Symfony 3.0

Trigger deprecation notices at run-time

Page 37: Migrating to Symfony 3.0

Trigger deprecation notices at run-time

Page 38: Migrating to Symfony 3.0

Trigger deprecation notices at run-time

Page 39: Migrating to Symfony 3.0

Trigger deprecation notices at run-time

Page 40: Migrating to Symfony 3.0

Trigger deprecation notices at run-time

Page 41: Migrating to Symfony 3.0

It has to workfor Symfony itself, component by component

Page 42: Migrating to Symfony 3.0

Cross Versions Dependencies

o

o ~2.x|~3.0.0

Page 43: Migrating to Symfony 3.0

The @legacy PHPUnit Group

Page 44: Migrating to Symfony 3.0

Cross Versions Dependencies

o

o ~2.8|~3.0

Page 45: Migrating to Symfony 3.0

Prefer Lowest Requirements

Page 46: Migrating to Symfony 3.0

Sustainabilityof the CUP promise?

Page 47: Migrating to Symfony 3.0

Page 48: Migrating to Symfony 3.0

What’s newin Symfony 3?

Page 49: Migrating to Symfony 3.0

MuchStricterQualityProcesses

Page 50: Migrating to Symfony 3.0

What about the Symfony ecosystem?

Page 51: Migrating to Symfony 3.0

Use the Symfony PHPUnit Bridge

Page 52: Migrating to Symfony 3.0

Allow Symfony ~3.0 Dependencies

Page 53: Migrating to Symfony 3.0

Their turn to deprecate

Page 54: Migrating to Symfony 3.0

Their turn to deprecate

Page 55: Migrating to Symfony 3.0

What’s newin Symfony 3?

Page 56: Migrating to Symfony 3.0

A Processto RemoveLegacy Code

Page 57: Migrating to Symfony 3.0

Now your turn!

Page 58: Migrating to Symfony 3.0

•o

o

o

Some guidelines

Page 59: Migrating to Symfony 3.0

Some guidelines

Page 60: Migrating to Symfony 3.0

Some guidelines

Page 61: Migrating to Symfony 3.0

Some guidelines

Page 62: Migrating to Symfony 3.0

Some guidelines

Page 63: Migrating to Symfony 3.0

Some guidelines

Page 64: Migrating to Symfony 3.0

Some guidelines

Page 65: Migrating to Symfony 3.0

Some guidelines

Page 66: Migrating to Symfony 3.0

Some guidelines

Page 67: Migrating to Symfony 3.0

Now your turn!

Page 68: Migrating to Symfony 3.0

SensioLabs

Merci !

@nicolasgrekas