Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Symfony 4.2

Tim Jabs
November 28, 2018

Symfony 4.2

A talk about symfony 4.2.

Tim Jabs

November 28, 2018
Tweet

More Decks by Tim Jabs

Other Decks in Education

Transcript

  1. 3

  2. DEPRECATIONS !7 Deprecated template directory: old default:
 src/Resources/views/ new default:


    templates/ How can I change this?
 config/packages/twig.yaml
 twig.default_path
  3. DEPRECATIONS !8 Deprecated the Kernel name and root dir: No

    more:
 KernelInterface::getName()/
 getRootDir() => getProjectDir()
 If you need a distinctive ID for the kernel: KernelInterface::getContainerClass()
 

  4. DEPRECATIONS !16 Take care! There are even more deprecations take

    this https://github.com/symfony/symfony/blob/4.2/ UPGRADE-4.2.md
  5. TRANSLATION RELATED IMPROVEMENTS !25 ICU parent locales as fallback: Example:


    
 before:
 es_AR => es
 after:
 es_AR => es_419 => es
  6. TRANSLATION RELATED IMPROVEMENTS !26 Update XLF translations by default: before:


    bin/console translation:update // output default JSON after:
 bin/console translation:update // output default XLF
  7. TRANSLATION RELATED IMPROVEMENTS !27 Lint multiple XLIFF dirs or files:

    bin/console lint:xliff supports multiple directories now
  8. REFERENCES !47 Overview: 
 https://symfony.com/blog/symfony-4-2-curated-new-features Changelog: https://symfony.com/blog/symfony-4-2-0-beta1-released https://symfony.com/blog/symfony-4-2-0-beta2-released Translations: https://symfony.com/blog/new-in-symfony-4-2-translation-related-improvements

    https://symfony.com/blog/new-in-symfony-4-2-intlmessageformatter Deprecations: https://symfony.com/blog/new-in-symfony-4-2-important-deprecations Security: https://symfony.com/blog/new-in-symfony-4-2-samesite-cookie-configuration https://symfony.com/blog/new-in-symfony-4-2-auto-secure-cookies https://symfony.com/blog/new-in-symfony-4-2-detailed-security-voters-decisions
  9. REFERENCES !48 Forms: https://symfony.com/blog/new-in-symfony-4-2-clear-form-errors https://symfony.com/blog/new-in-symfony-4-2-improved-form-type-extensions Misc: https://symfony.com/blog/new-in-symfony-4-2-cache-stampede-protection https://symfony.com/blog/new-in-symfony-4-2-divisibleby-constraint https://symfony.com/blog/new-in-symfony-4-2-addlink-shortcut https://symfony.com/blog/new-in-symfony-4-2-define-env-vars-per-environment

    https://symfony.com/blog/new-in-symfony-4-2-acceptable-request-formats https://symfony.com/blog/new-in-symfony-4-2-simpler-custom-serialized-names https://symfony.com/blog/new-in-symfony-4-2-wait-until-processes-are-ready https://symfony.com/blog/new-in-symfony-4-2-varexporter-component https://symfony.com/blog/new-in-symfony-4-2-console-tables-improvements https://symfony.com/blog/new-in-symfony-4-2-pdo-based-lock-storage https://symfony.com/blog/new-in-symfony-4-2-autowiring-by-type-and-name https://symfony.com/blog/new-in-symfony-4-2-simpler-functional-tests https://symfony.com/doc/current/configuration/dot-env-changes.html