Skip to content
Permalink
Branch: master
Commits on Mar 15, 2019
  1. feature #30469 Create a hyperlink to interfaces/classes that can be a…

    nicolas-grekas committed Mar 15, 2019
    …utowired (SerkanYildiz)
    
    This PR was squashed before being merged into the 4.3-dev branch (closes #30469).
    
    Discussion
    ----------
    
    Create a hyperlink to interfaces/classes that can be autowired
    
    | Q             | A
    | ------------- | ---
    | Branch?       | master
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | License       | MIT
    
    Added hyperlink to definition of interfaces/classes that can be used for autowiring.
    But I need help with:
    - the aliases are becoming hyperlinks too, but shouldn't.
    It's outputting `<fg=yellow;href=phpstorm://open?file=filepath&line=17>Symfony\Contracts\Translation\TranslatorInterface</> <fg=cyan>(translator.default)</>`
    
    - it currently works with phpstorm because it's hardcoded but it should work with framework.ide option, but don't know what the best approach is to support that config option.
    
    Commits
    -------
    
    a3dfcee406 Create a hyperlink to interfaces/classes that can be autowired
  2. feature #30334 [DI] add ReverseContainer: a locator that turns servic…

    nicolas-grekas committed Mar 15, 2019
    …es back to their ids (nicolas-grekas)
    
    This PR was merged into the 4.3-dev branch.
    
    Discussion
    ----------
    
    [DI] add ReverseContainer: a locator that turns services back to their ids
    
    | Q             | A
    | ------------- | ---
    | Branch?       | master
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | -
    | License       | MIT
    | Doc PR        | -
    
    This PR introduces a `ReverseContainer`, which is a class you can type hint for to get it as a service.
    
    When you have a `ReverseContainer` at hand, you can then use it to know the service id of an object (if the object is not found, `null` is returned):
    `$id = $reverseContainer->getId($someObject);`
    
    You can also call `$reverseContainer->getService($id);` and get the service in return.
    
    To be reversible, a service must either be public or be tagged with `container.reversible`.
    
    I'm using this feature to serialize service references in a message, then send them through a Messenger bus, allowing the handler on the other side to use that referenced service to process the message. More specifically, my use case is sending messages for early cache expiration events through a bus and have a worker compute the soon-to-expire value in the background. The reversible services are the computation callbacks and the cache pools I need to compute the value for.
    
    Commits
    -------
    
    ac1e4291e8 [DI] add ReverseContainer: a locator that turns services back to their ids
Commits on Mar 14, 2019
  1. [Messenger] deprecate LoggingMiddleware in favor of providing a logge…

    nicolas-grekas committed Mar 12, 2019
    …r to SendMessageMiddleware
Commits on Mar 12, 2019
  1. Merge branch '4.2'

    nicolas-grekas committed Mar 12, 2019
    * 4.2:
      Fix README about BC promise
      Fixed typo
Commits on Mar 10, 2019
  1. Merge branch '4.2'

    nicolas-grekas committed Mar 10, 2019
    * 4.2:
      fix merge
  2. fix merge

    nicolas-grekas committed Mar 10, 2019
  3. Merge branch '4.2'

    nicolas-grekas committed Mar 10, 2019
    * 4.2: (27 commits)
      cs fix
      cs fix
      [PHPUnit-Bridge] override some environment variables
      [TwigBridge] Remove use spaceless tag
      Upgrade zookeeper ext
      [translation] Update defaut format from yml to yaml
      Change default log level for output streams
      update docblock to match the actual behavior
      Don't resolve the Deprecation error handler mode until a deprecation is triggered
      compatibility with phpunit8
      Make 'headers' key optional for encoded messages
      [Debug][DebugClassLoader] Detect annotations before blank docblock lines on final and internal methods
      Fix undefined variable fromConstructor when passing context to getTypes
      Added translations for chineese language.
      Allow 3rd argument to be null
      Remove whitespace (tab on blank line)
      [Monolog] Really reset logger when calling logger::reset()
      [Form] Fixes debug:form appears many times as type extensions configured with new getExtendedTypes method
      Update src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php
      Update src/Symfony/Component/PropertyInfo/Tests/Extractor/ReflectionExtractorTest.php
      ...
  4. Merge branch '3.4' into 4.2

    nicolas-grekas committed Mar 10, 2019
    * 3.4:
      cs fix
      cs fix
      [PHPUnit-Bridge] override some environment variables
      [TwigBridge] Remove use spaceless tag
      [translation] Update defaut format from yml to yaml
      Change default log level for output streams
      update docblock to match the actual behavior
      compatibility with phpunit8
      [Debug][DebugClassLoader] Detect annotations before blank docblock lines on final and internal methods
      Added translations for chineese language.
Commits on Mar 4, 2019
  1. Merge branch '3.4' into 4.2

    nicolas-grekas committed Mar 4, 2019
    * 3.4:
      Fix typo
      fix required DependencyInjection component version
You can’t perform that action at this time.