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

Symfony 4.2 updated

Avatar for Tim Jabs Tim Jabs
January 24, 2019

Symfony 4.2 updated

Avatar for Tim Jabs

Tim Jabs

January 24, 2019
Tweet

More Decks by Tim Jabs

Other Decks in Technology

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 !28 ICU parent locales as fallback: Example:


    
 before:
 es_AR => es
 after:
 es_AR => es_419 => es
  6. TRANSLATION RELATED IMPROVEMENTS !29 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 !30 Lint multiple XLIFF dirs or files:

    bin/console lint:xliff supports multiple directories now
  8. CONTRIBUTE? 58 You want to be part of Symfony? Take

    a look: https://symfony.com/doc/current/contributing/ index.html
  9. REFERENCES !59 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
  10. REFERENCES !60 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