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

Support for properties in NEON statement syntax in section services - PART 1 #318

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

mildabre
Copy link

@mildabre mildabre commented Nov 23, 2024

There are multiple bugs in compiling neon statements - service arguments/setup into php code in container - support of properties/constants syntax is unsufficient. This was discussed on forum here with detailed list of invalid compiling variants:

https://forum.nette.org/cs/36724-chyby-v-konfiguraci-syntaxe-property-konstanty-v-sekci-services-aktualizace

I made deep testing and found 6 bugs in the statement syntax. I have developed and tested fix of all bugs, which involves changes in 8 classes in nette/di, nette/neon and nette/application. Beside this PR 1, I submitted anoither two PR, all of them should be merged together:

PR2 https://github.com/…neon/pull/73
PR3 https://github.com/…ion/pull/339

Today I published detailed description of the solution + detailed tests on forum here:

https://forum.nette.org/cs/36724-chyby-v-konfiguraci-syntaxe-property-konstanty-v-sekci-services-aktualizace#p228053

Tests are 100% succesfull so I hope everything was done for succesfull merging.

dg and others added 18 commits October 5, 2024 05:17
added Definition::getDescriptor(), Helpers::entityToString()
…r(), convertReferences() - extend support for @service::Constant/$staticProperty
…eck of existence of the constant, add converting constant/static property to Literal object
…ents to syntax with $property, $$staticProeprty, $Constant and method - to creater arguments + setup items.
@dg dg force-pushed the master branch 2 times, most recently from 8655bcb to 59cf699 Compare December 2, 2024 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants