8000 PHP-DI 7.0 by mnapoli · Pull Request #726 · PHP-DI/PHP-DI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PHP-DI 7.0 #726

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

Merged
merged 60 commits into from
Jan 12, 2023
Merged

PHP-DI 7.0 #726

merged 60 commits into from
Jan 12, 2023

Conversation

mnapoli
Copy link
Member
@mnapoli mnapoli commented Aug 1, 2020

This pull request contains a possible v7.0 version.

Changes:

TODO:

Blocked by:

@mnapoli mnapoli added this to the 7.0 milestone Aug 1, 2020
@b1rdex
Copy link
Contributor
b1rdex commented Aug 7, 2020

Would be nice to see #662 included in 7.0 or some kind of it — I mean the ability to disable @Inject thing completely.

@mnapoli
Copy link
Member Author
mnapoli commented Aug 8, 2020

@b1rdex why would you want to disable @Inject? Annotations are disabled by default anyway, so it's already the case 🤔

@b1rdex
Copy link
Contributor
b1rdex commented Aug 8, 2020 via email

@mnapoli
Copy link
Member Author
mnapoli commented Aug 10, 2020

Not really, if you don't use annotations those are not read.

@juliangut
Copy link
< 8000 /details-menu>
Contributor

Little feedback on v7

I've created a new branch at https://github.com/juliangut/slim-php-di targetting 7.0-beta2 and so far everything went smoothly with PHP7.4, didn't test in PHP8 yet

@mnapoli
Copy link
Member Author
mnapoli commented Oct 6, 2020

Awesome, thanks for the feedback @juliangut

I'm using that new version in a prototype for now, going great. PHP 8 attributes are super cool!

# Conflicts:
#	.travis.yml
#	composer.json
#	tests/UnitTest/Definition/Source/Fixtures/AnnotationFixture5.php
@arokettu
Copy link

A small attribute feedback: unlike phpdoc, attributes can be assigned to parameters so

    #[Inject(['param2' => 'db.host'])]
    public function method3(Foo $param1, $param2)
    {
    }

can be

    public function method3(Foo $param1, #[Inject('db.host')] $param2)
    {
    }

It would be nice to have it

@mnapoli
Copy link
Member Author
mnapoli commented Oct 21, 2020

@arokettu absolutely, thank you for pointing it out! I completely forgot about that until I see that Symfony did exactly that recently.

I want to implement that now 👍

@mnapoli
Copy link
Member Author
mnapoli commented Oct 22, 2020

@arokettu I've implemented that in #741

Support PHP 8 attributes at the parameter level
@arokettu
Copy link

@mnapoli awesome, thanks

@mnapoli mnapoli mentioned this pull request Nov 11, 2020
@cspray
Copy link
cspray commented Aug 11, 2022

FWIW I have a fairly extensive Container test suite that's been utilizing v7.x-dev with 8.1 for quite some time and everything has worked great.

# Conflicts:
#	src/Compiler/ObjectCreationCompiler.php
#	src/Container.php
#	src/Definition/Resolver/DefinitionResolver.php
#	src/Definition/Resolver/ObjectCreator.php
#	src/Definition/Resolver/ParameterResolver.php
#	src/Definition/Source/Autowiring.php
#	src/Definition/Source/DefinitionSource.php
@route33
Copy link
route33 commented Nov 17, 2022

PHP 7.4 reaches its end of life in 10 days.
I tested this branch quite extensively during the past month without any issues. When it will be merged?

@geek-merlin
Copy link

Any updates about the status of all this? I'm confused, see #833.

@306VLD
Copy link
306VLD commented Jan 6, 2023

Hello @mnapoli ,
What's left for this to be merged?
We also tested it and everything looks good. We need this update.
Thank you!

# Conflicts:
#	.php-cs-fixer.php
#	composer.json
#	phpstan-baseline.neon
< 6D40 /div>
@mnapoli
Copy link
Member Author
mnapoli commented Jan 8, 2023

Hey everyone, I apologize for dropping the ball here. Big major versions like these are scary, and when you work on a project a few hours every month, it's hard to be confident enough to go over that scariness :)

Though I do appreciate a lot the feedback from those that tested the beta versions (and had no issues). That is great to hear!

Let's move this forward! I am setting a release date to next Thursday because that will be my birthday :p

I'll tag a release candidate tonight, let's do this!

@mnapoli
Copy link
Member Author
mnapoli commented Jan 8, 2023

@306VLD
Copy link
306VLD commented Jan 8, 2023

Thank you for your reply. Looking forward to this release 😄

@geek-merlin
Copy link

Yay, thanks a bunch @mnapoli!

@mnapoli mnapoli merged commit 0f08e31 into master Jan 12, 2023
@mnapoli mnapoli deleted the v7 branch January 12, 2023 13:43
@mnapoli
Copy link
Member Author
mnapoli commented Jan 12, 2023

Today is the day 🎉

https://php-di.org/news/23-php-di-7-0-released.html

@geek-merlin
Copy link
geek-merlin commented Jan 12, 2023

🎉 Happy hippy birthday @mnapoli and php-di:7.0.0! 🎉

@mnapoli
Copy link
Member Author
mnapoli commented Jan 12, 2023

Well thank you :)

@ldebrouwer
Copy link
Contributor

Happy birthday @mnapoli! And thank you for all you do, it's really appreciated 🎉

@rikgirbes
Copy link

Awesome! And happy birthday to you! 🎉

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.

0