8000 Comparing v4.1.3...v4.1.4 · symfony/dependency-injection · GitHub
[go: up one dir, main page]

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: symfony/dependency-injection
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.1.3
Choose a base ref
...
head repository: symfony/dependency-injection
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.1.4
Choose a head ref
  • 7 commits
  • 13 files changed
  • 2 contributors

Commits on Jul 29, 2018

  1. Configuration menu
    Copy the full SHA
    9fd7df1 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2018

  1. bug #28060 [DI] Fix false-positive circular ref leading to wrong exce…

    …ptions or infinite loops at runtime (nicolas-grekas)
    
    This PR was merged into the 3.4 branch.
    
    Discussion
    ----------
    
    [DI] Fix false-positive circular ref leading to wrong exceptions or infinite loops at runtime
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 3.4
    | Bug fix?      | yes
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | #28010, #27865
    | License       | MIT
    | Doc PR        | -
    
    When circular loops involve references in properties, method calls or configurators, it is possible to properly instantiate the related services.
    
    The current logic is broken: `ContainerBuilder` considers some of these loops as self-referencing circular references, leading to a runtime exception, and in similar situations, `PhpDumper` generates code that turns to infinite loops at runtime 💥. These badly handled situations happen with inlined definitions.
    
    This PR fixes both classes by making them track which references are really part of the constructors' chain, including inline definitions.
    
    It also fixes dumping infinite loops when dumping circular loops involving lazy services while proxy-manager-bridge is not installed.
    
    Commits
    -------
    
    e843bb86c8 [DI] Fix false-positive circular ref leading to wrong exceptions or infinite loops at runtime
    nicolas-grekas committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    a0d56ac View commit details
    Browse the repository at this point in the history
  2. Merge branch '3.4' into 4.1

    * 3.4:
      [HttpFoundation] fix false-positive ConflictingHeadersException
      [DI] Fix false-positive circular ref leading to wrong exceptions or infinite loops at runtime
    nicolas-grekas committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    5945b45 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fbffe07 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    09d7df7 View commit details
    Browse the repository at this point in the history
  5. Merge branch '3.4' into 4.1

    * 3.4:
      [DI] fix analyzing lazy refs involved in circular loops
    nicolas-grekas committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    0c8d415 View commit details
    Browse the repository at this point in the history
  6. bug #28159 [DI] Fix autowire inner service (hason)

    This PR was merged into the 4.1 branch.
    
    Discussion
    ----------
    
    [DI] Fix autowire inner service
    
    | Q             | A
    | ------------- | ---
    | Branch?       | 4.1
    | Bug fix?      | yes
    | New feature?  | no
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | #25631
    | License       | MIT
    | Doc PR        | -
    
    This PR fix multiple levels of decoration. Unfortunately, this [good question](symfony/symfony#25631 (comment)) in origin PR has not been heard 🎧 😄. @dunglas @chalasr
    
    Commits
    -------
    
    b79d097c2a [DI] Fix autowire inner service
    nicolas-grekas committed Aug 8, 2018
    Configuration menu
    Copy the full SHA
    bae4983 View commit details
    Browse the repository at this point in the history
Loading
0