Re: Re: [RFC] Constructor Property Promotion

From: Date: Tue, 28 Apr 2020 15:45:35 +0000
Subject: Re: Re: [RFC] Constructor Property Promotion
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-109882@lists.php.net to get a copy of this message
Hi Nicolas > I would expect attributes to apply only to the properties on my side. Parameter annotations could be interesting for dependency injection. Symfony currently has some DI magic through parameter names among other things. It might be nice to control these through annotations instead. This would be impossible or involve a lot of hackery and assumptions if the annotations aren't available on the parameters. Alternatively we might make this information available through reflection (like ReflectionParameter::getGeneratedProperty()) so you can look for the annotation there. I don't think this is a huge problem, just wanted to mention it. Ilija

« previous php.internals (#109882) next »