Slide 1

Slide 1 text

SYMFONY 4.1 WHAT'S NEW? 1

Slide 2

Slide 2 text

Who am I? Tim Jabs Software Developer 
 @ Sensiolabs Deutschland 2

Slide 3

Slide 3 text

FASTEST PHP ROUTER !3

Slide 4

Slide 4 text

FASTEST PHP ROUTER !4 • matcher class refactored based on an article
 Fast request routing using regular expressions • Technique based on FastRoute made by Nikita Popov • optimisation through avoiding preg_match calls each route

Slide 5

Slide 5 text

FASTEST PHP ROUTER !5 • Symfony 4.1 URL matching is 77x faster than in previous versions • The Symfony Router is now the fastest PHP router, beating FastRoute and all other routing libraries

Slide 6

Slide 6 text

INTL ROUTING 6

Slide 7

Slide 7 text

INTL ROUTING !7 • JMSI18nRoutingBundle features now in Symfony
 out-of-the-box • you can define now different paths per locale

Slide 8

Slide 8 text

8

Slide 9

Slide 9 text

!9

Slide 10

Slide 10 text

SERIALIZER IMPROVEMENTS 10

Slide 11

Slide 11 text

SERIALIZER IMPROVEMENTS Faster Serializer !11 • 40% faster serialisation • new CacheableSupportsMethodInterface for caching supportsNormalization()

Slide 12

Slide 12 text

CONSOLE IMPROVEMENTS 12

Slide 13

Slide 13 text

CONSOLE IMPROVEMENTS !13

Slide 14

Slide 14 text

!14 Autosuggestions

Slide 15

Slide 15 text

!15 New table styles

Slide 16

Slide 16 text

!16 New table styles

Slide 17

Slide 17 text

!17 New methods for customising tables

Slide 18

Slide 18 text

!18 Support for outputting iterators

Slide 19

Slide 19 text

ADVANCED CONSOLE IMPROVEMENTS 19

Slide 20

Slide 20 text

ADVANCED CONSOLE IMPROVEMENTS !20 • render multiple sections simultaneously • add new rows to tables

Slide 21

Slide 21 text

!21 Adding sections to your console app

Slide 22

Slide 22 text

!22

Slide 23

Slide 23 text

!23

Slide 24

Slide 24 text

!24

Slide 25

Slide 25 text

NEW MESSENGER COMPONENT 25

Slide 26

Slide 26 text

NEW MESSENGER COMPONENT !26 • comes with an built-in AMQP Adapter • has a built-in way to send and receive messages

Slide 27

Slide 27 text

!27

Slide 28

Slide 28 text

!28

Slide 29

Slide 29 text

!29

Slide 30

Slide 30 text

VAR DUMPER SERVER 30

Slide 31

Slide 31 text

!31 • VarDumper has now a server to collect all dumped data • can be dumped as HTML VAR DUMPER SERVER

Slide 32

Slide 32 text

32

Slide 33

Slide 33 text

33

Slide 34

Slide 34 text

34

Slide 35

Slide 35 text

35

Slide 36

Slide 36 text

THANK YOU 36

Slide 37

Slide 37 text

REFERENCES !37 • https://symfony.com/blog/new-in-symfony-4-1-fastest-php-router • https://symfony.com/blog/new-in-symfony-4-1-internationalized-routing • https://symfony.com/blog/new-in-symfony-4-1-faster-serializer • https://symfony.com/blog/new-in-symfony-4-1-serializer-improvements • https://symfony.com/blog/new-in-symfony-4-1-console-improvements • https://symfony.com/blog/new-in-symfony-4-1-advanced-console-output • https://symfony.com/blog/new-in-symfony-4-1-messenger-component • https://symfony.com/blog/new-in-symfony-4-1-vardumper-server