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

    nicolas-grekas committed Sep 11, 2019
    * 4.4:
      Re-enable push support for HttpClient
      [DependencyInjection] Accept existing interfaces as valid named args
      Fixed incompatibility between ServiceSubscriberTrait and classes with protected $container property
      [Cache] Added reserved characters constant for CacheItem
      [DI] cascade preloading only to public parameters/properties
      Move Anonymous config to a SecurityFactory
  2. Merge branch '4.3' into 4.4

    nicolas-grekas committed Sep 11, 2019
    * 4.3:
      Re-enable push support for HttpClient
      [DependencyInjection] Accept existing interfaces as valid named args
      Fixed incompatibility between ServiceSubscriberTrait and classes with protected $container property
Commits on Sep 10, 2019
  1. Merge branch '4.4'

    nicolas-grekas committed Sep 10, 2019
    * 4.4:
      Update GitHub PR template
      [DI] fix related to preloading
      [HttpKernel] fix compat with legacy DebugClassLoader
      [WebProfilerBundle] Assign automatic colors to custom Stopwatch categories
      [DI] use dirname() when possible
      Simplify usage of dirname()
      Remove Google references when not needed
      Simplify usage of dirname()
      don't dump a scalar tag value on its own line
      Remove Google references when not needed
      [DI] fix Preloader
      [HttpClient] fix calling the buffer-enabling callback
      [HttpClient] fix php notice on push
      do not perform string operations on null
      Require exact match when reading from stdin with a dash
Commits on Sep 9, 2019
  1. Merge branch '4.4'

    nicolas-grekas committed Sep 9, 2019
    * 4.4:
      [Cache] Add types to constructors and private/final/internal methods.
      [HttpClient] Allow enabling buffering conditionally with a Closure
  2. feature #32565 [HttpClient] Allow enabling buffering conditionally wi…

    nicolas-grekas committed Sep 9, 2019
    …th a Closure (rjwebdev)
    
    This PR was merged into the 4.4 branch.
    
    Discussion
    ----------
    
    [HttpClient] Allow enabling buffering conditionally with a Closure
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 4.4
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | #31883
    | License       | MIT
    | Doc PR        | symfony/symfony-docs#12043
    
    With this PR, responses can be buffered automatically from a closure passed to the `buffer` option.
    
    ```php
    $resp = $client->request('GET', $url, [
        'buffer' => function (array $headers): bool { return true/false; },
    ]);
    ```
    
    When no option is provided, buffering is now enabled only for json, xml and text/* content types.
    
    Commits
    -------
    
    f705ac9dc4 [HttpClient] Allow enabling buffering conditionally with a Closure
Commits on Sep 8, 2019
  1. Merge branch '4.4'

    nicolas-grekas committed Sep 8, 2019
    * 4.4: (21 commits)
      [appveyor] exclude tty group
      [HttpFoundation] Add types to private/final/internal methods and constructors.
      Add types to private/final/internal methods and constructors.
      SCA: minor code tweaks
      Tweak output
      [FrameworkBundle] Added --sort option for TranslationUpdateCommand
      [HttpClient] fallbackto CURLMOPT_MAXCONNECTS when CURLMOPT_MAX_HOST_CONNECTIONS is not available
      [DI] generate preload.php file for PHP 7.4 in cache folder
      Allow version 2 of the contracts package.
      [Serializer] Allow multi-dimenstion object array in AbstractObjectNormalizer
      fixed typo
      [HttpKernel] Fix Apache mod_expires Session Cache-Control issue
      deprecated not passing dash symbol (-) to STDIN commands
      [VarDumper] display ellipsed FQCN for nested classes
      [VarDumper] Display fully qualified title
      [Mailer] Change the syntax for DSNs using failover or roundrobin
      Removed workaround introduced in 4.3
      [Console] Added support for definition list
      [OptionsResolver] Display full nested options hierarchy in exceptions
      New welcome page
      ...
  2. Merge branch '4.3' into 4.4

    nicolas-grekas committed Sep 8, 2019
    * 4.3:
      SCA: minor code tweaks
      [HttpClient] fallbackto CURLMOPT_MAXCONNECTS when CURLMOPT_MAX_HOST_CONNECTIONS is not available
      fixed typo
      [HttpKernel] Fix Apache mod_expires Session Cache-Control issue
      Fix getFileLinkFormat() to avoid returning the wrong URL in Profiler
  3. [HttpClient] fallbackto CURLMOPT_MAXCONNECTS when CURLMOPT_MAX_HOST_C…

    nicolas-grekas committed Sep 8, 2019
    …ONNECTIONS is not available
Commits on Sep 3, 2019
  1. Merge branch '4.4'

    nicolas-grekas committed Sep 3, 2019
    * 4.4:
      [HttpClient] Fix a bug preventing Server Pushes to be handled properly
      [HttpClient] fix support for 103 Early Hints and other informational status codes
      fix typo
      [DI] fix failure
      [Validator] Add ConstraintValidator::formatValue() tests
      [HttpClient] improve handling of HTTP/2 PUSH
      Fix #33427
      lint all templates from configured Twig paths if no argument was provided
      Nullable message id?
      [Validator] Only handle numeric values in DivisibleBy
      [Validator] Sync string to date behavior and throw a better exception
      Check phpunit configuration for listeners
      registering basic exception handler for late failures
      [DI] fix support for "!tagged_locator foo"
      [Mailer] Add a more precise exception
      [ErrorHandler][Bridge/PhpUnit] display deprecations for not-autoloaded classes
  2. Merge branch '4.3' into 4.4

    nicolas-grekas committed Sep 3, 2019
    * 4.3:
      [HttpClient] Fix a bug preventing Server Pushes to be handled properly
      [HttpClient] fix support for 103 Early Hints and other informational status codes
      [DI] fix failure
      [Validator] Add ConstraintValidator::formatValue() tests
      [HttpClient] improve handling of HTTP/2 PUSH
      Fix #33427
      [Validator] Only handle numeric values in DivisibleBy
      [Validator] Sync string to date behavior and throw a better exception
      Check phpunit configuration for listeners
      [DI] fix support for "!tagged_locator foo"
  3. bug #33391 [HttpClient] fix support for 103 Early Hints and other inf…

    nicolas-grekas committed Sep 3, 2019
    …ormational status codes (nicolas-grekas)
    
    This PR was merged into the 4.3 branch.
    
    Discussion
    ----------
    
    [HttpClient] fix support for 103 Early Hints and other informational status codes
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 4.3
    | Bug fix?      | yes
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | -
    | License       | MIT
    | Doc PR        | -
    
    I learned quite recently how 1xx status codes work in HTTP 1.1 when I discovered the [103 Early Hint](https://evertpot.com/http/103-early-hints) status code from [RFC8297](https://tools.ietf.org/html/rfc8297)
    
    This PR fixes support for them by adding a new `getInformationalStatus()` method on `ChunkInterface`. This means that you can now know about 1xx status code by using the `$client->stream()` method:
    
    ```php
    
    $response = $client->request('GET', '...');
    
    foreach ($client->stream($response) as $chunk) {
        [$code, $headers] = $chunk->getInformationalStatus();
        if (103 === $code) {
            // $headers['link'] contains the early hints defined in RFC8297
        }
    
        // ...
    }
    ```
    
    Commits
    -------
    
    34275bba1c [HttpClient] fix support for 103 Early Hints and other informational status codes
You can’t perform that action at this time.