Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump php-di/php-di from 5.4.3 to 6.0.2 #9

Closed

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Jul 10, 2018

Bumps php-di/php-di from 5.4.3 to 6.0.2.

Release notes

Sourced from php-di/php-di's releases.

6.0.2

Fix potential regression introduced in the previous release when fixing #582

6.0.1

  • Fix #526: Support optional parameters in factories
  • #585 Add support for PHP-Parser 4.0
  • #582 Register ContainerInterface to point to the wrapper container if it was defined

6.0.0

This is the complete change log. You can also read the migration guide for upgrading or the blog article to see what's new.

Improvements:

  • #494 The container can now be compiled for optimum performances in production
  • #294, #349, #449: DI\object() has been replaced by more specific and less ambiguous helpers:
    • DI\create() creates an object, overrides autowiring and previous definitions
    • DI\autowire() autowires an object and allows to override specific constructor and method parameters
  • The container can now be built without parameters: new Container()
  • Definitions can be nested:
  • #487 Closures in the config are now always interpreted as factories, even when nested inside other definitions
  • #242 Error in case a definition is not indexed by a string
  • #505 Debug container entries
  • #564 Caching was made almost entirely obsolete by the container compilation, however there is still a caching system entirely rebuilt over APCu for covering the last cases that compilation could not address (see php-di.org/doc/performances.html)

Fixes:

  • #499 & #488 Standardize resolution of nested definitions everywhere.
    In PHP-DI 5, definitions could be nested in some places (e.g. use a get() in an object definition, etc.). However it did not behave everywhere the same, for example it didn't work for sub-definitions in arrays.
    Now in PHP-DI 6 all nested definitions will all be recognized and resolved correctly everywhere. Since #494 (compiled container) performance will not be affected so we can implement a more robust behavior.
  • #343 Autowiring and Annotations do not work for object() inside arrays: it now works with the new create() and autowire() helpers

BC breaks:

  • PHP 7 or greater is required and HHVM is no longer supported
  • DI\object() has been removed, use DI\create() or DI\autowire() instead
  • #409: Scopes are removed, read more in the scopes documentation.
  • Caching was replaced by compiling the container: ContainerBuilder::setDefinitionCache() was removed, use ContainerBuilder::enableCompilation() instead.
  • #463 & #485: Container-interop support was removed, PSR-11 is used instead (by [juliangut](https://github.com/juliangut))
  • The deprecated DI\link() helper was removed, used DI\get() instead
  • #484 The deprecated \DI\Debug class has been removed. Definitions can be cast to string directly
  • The exception DI\Definition\Exception\DefinitionException was renamed to DI\Definition\Exception\InvalidDefinition
  • The exception DI\Definition\Exception\AnnotationException was renamed to DI\Definition\Exception\InvalidAnnotation
  • #516 DI\InvokerInterface was removed in favor of Invoker\InvokerInterface.

Be also aware that internal classes or interfaces may have changed.

6.0.0-beta3

... (truncated)
Commits
  • 71a7f2e Fix potential regression introduced when fixing #582
  • b632aef Update the README image to high resolution
  • 1a46970 Fix #582 Register ContainerInterface to point to the wrapper container if i...
  • dfad09b Update changelog
  • d538302 Fix #585 Add support PHP-Parser 4.0
  • 9653e90 Changelog update
  • 7d0112f Merge pull request #597 from PHP-DI/fix-526
  • 05aab9c Fix #526 Support optional parameters in factories
  • 03c0460 Merge pull request #595 from alexecus/patch-1
  • 495ed1a Added correct class path for Container
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because it includes an out-of-range update to a development dependency.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 5 PRs for your first few update runs. Once an update run creates fewer than 5 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

@dependabot-preview dependabot-preview bot force-pushed the dependabot/composer/php-di/php-di-6.0.2 branch 2 times, most recently from 0192de0 to 9c49db6 Compare July 22, 2018 09:48
@WyriHaximus
Copy link
Member

@dependabot rebase

Bumps [php-di/php-di](https://github.com/PHP-DI/PHP-DI) from 5.4.3 to 6.0.2.
- [Release notes](https://github.com/PHP-DI/PHP-DI/releases)
- [Commits](PHP-DI/PHP-DI@5.4.3...6.0.2)

Signed-off-by: dependabot[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/composer/php-di/php-di-6.0.2 branch from 9c49db6 to 82c178a Compare July 22, 2018 10:26
@dependabot-preview
Copy link
Contributor Author

Superseded by #12.

@dependabot-preview dependabot-preview bot deleted the dependabot/composer/php-di/php-di-6.0.2 branch August 27, 2018 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants