Skip to content
Permalink
Branch: master
Commits on Nov 8, 2019
  1. Merge branch '4.4'

    nicolas-grekas committed Nov 8, 2019
    * 4.4:
      [DI] Dont cache classes with missing parents
      [HttpClient] Fix a crash when calling CurlHttpClient::__destruct()
      Unallow symfony/http-kernel ^5.0
      [FrameworkBundle] fix SodiumVault after stof review
      [HttpClient] allow arbitrary JSON values in requests
      [DependencyInjection] Added option `ignore_errors: not_found` while importing config files
      [Validator] Add the missing translations for the Hebrew (\"he\") locale and fix 2 typos
      [FrameworkBundle][Translation] Invalidate cached catalogues when the scanned directories change
  2. feature #31310 [DependencyInjection] Added option `ignore_errors: not…

    nicolas-grekas committed Nov 8, 2019
    …_found` for imported config files (pulzarraider)
    
    This PR was merged into the 4.4 branch.
    
    Discussion
    ----------
    
    [DependencyInjection] Added option `ignore_errors: not_found` for imported config files
    
    | Q             | A
    | ------------- | ---
    | Branch?       | master
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | yes
    | Tests pass?   | yes
    | Fixed tickets | -
    | License       | MIT
    | Doc PR        | symfony/symfony-docs#11647
    
    If someone want to add optional config file. The only available choice was to add `ignore_errors: true` option
    
    e.g.
    ```
    imports:
        - { resource: parameters.yml, ignore_errors: true }
    ```
    
    But this will hide all errors in imported file. We ran in many situations that broke our Symfony applications because we had a typo in this imported files.
    
    This PR introduce new possible value `not_found` for `ignore_errors` option. It can be used for optional config files like the `ignore_errors: true`, but it will ignore only the file non-existence, not the possible syntax errors inside.
    
    Usage:
    ```
    imports:
        - { resource: parameters.yml, ignore_errors: not_found}
    ```
    
    Commits
    -------
    
    e0ee01c10d [DependencyInjection] Added option `ignore_errors: not_found` while importing config files
  3. Merge branch '4.3' into 4.4

    nicolas-grekas committed Nov 8, 2019
    * 4.3:
      [DI] Dont cache classes with missing parents
      [HttpClient] Fix a crash when calling CurlHttpClient::__destruct()
      [Validator] Add the missing translations for the Hebrew (\"he\") locale and fix 2 typos
      [FrameworkBundle][Translation] Invalidate cached catalogues when the scanned directories change
  4. Merge branch '3.4' into 4.3

    nicolas-grekas committed Nov 8, 2019
    * 3.4:
      [DI] Dont cache classes with missing parents
      [Validator] Add the missing translations for the Hebrew (\"he\") locale and fix 2 typos
Commits on Nov 5, 2019
  1. Merge branch '4.4'

    nicolas-grekas committed Nov 5, 2019
    * 4.4: (39 commits)
      [Console] Fix #33915, Detect dimensions using mode CON if vt100 is supported
      [PhpUnitBridge] Also search for composer.phar in git root folder
      [HttpKernel][DataCollectorInterface] Ease compatibility
      Add tests to ensure defaultLocale is properly passed to the URL generator
      [DependencyInjection] Fix broken references in tests
      [VarDumper] display the method we're in when dumping stack traces
      [HttpClient] Retry safe requests when then fail before the body arrives
      [Console] Rename some methods related to redraw frequency
      Avoid using of kernel after shutdown
      Simplify PHP CS Fixer configuration
      [PropertyInfo] Fixed type extraction for nullable collections of non-nullable elements
      [FrameworkBundle] [HttpKernel] fixed correct EOL and EOM month
      Fix CS
      [Serializer] Fix property name usage for denormalization
      Name test accordingly to the tested class
      Fix MockFileSessionStorageTest::sessionDir being used after it's unset
      [Security] Fix SwitchUserToken wrongly deauthenticated
      Supporting Bootstrap 4 custom switches
      Add new Form WeekType
      bumped Symfony version to 4.3.7
      ...
Commits on Nov 4, 2019
  1. feature #31587 [Routing][Config] Allow patterns of resources to be ex…

    nicolas-grekas committed Nov 4, 2019
    …cluded from config loading (tristanbes)
    
    This PR was merged into the 4.4 branch.
    
    Discussion
    ----------
    
    [Routing][Config] Allow patterns of resources to be excluded from config loading
    
    | Q             | A
    | ------------- | ---
    | Branch?       | master
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | yes
    | Tests pass?   | yes
    | Fixed tickets | #31516
    | License       | MIT
    | Doc PR        | not yet
    
    The PR will fix the following RFC: #31516
    
    Like resource loading for services, this PR offers a way to exclude patterns of resources like:
    
    ```yml
    // config/routes/annotations.yaml
    controllers:
        resource: ../../src/Controller/*
        type: annotation
        exclude: '../src/Controller/{DebugEmailController}.php'
    ```
    
    All the annotation routes inside `Controller/` will be loaded in this example except all the one present inside the `Controller/DebugEmailController.php`
    
    Commits
    -------
    
    332ff8811c [Routing][Config] Allow patterns of resources to be excluded from config loading
You can’t perform that action at this time.