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

Reusable approach to enhanced proxy generation #8

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

Reusable approach to enhanced proxy generation #8

wants to merge 2 commits into from

Conversation

nfx
Copy link

@nfx nfx commented Jun 20, 2012

Goal:

  • some bundles want to define their own code enhancement rules
  • if two bundles enhance the same class - there would be no risk of conflicts
  • couple of bundles won't overwrite changes of each other, as they'll define their own generators

How:

  • added proxy enhancer repository
  • supported code with tests
  • fixed single failing test with outdated class name
  • now tests run normally on 2.1 composer based install

Regards,
Serge

@schmittjoh
Copy link
Owner

Hey, thanks for the patch.

There are a few CS issues, but I don't want to comment on them for now. Maybe you could show an example of how you would use these changes in your code?

@nfx
Copy link
Author

nfx commented Jun 20, 2012

@nfx
Copy link
Author

nfx commented Jun 25, 2012

so, what should i change?

@schmittjoh
Copy link
Owner

sry, did not have time yet to look into this.

On Mon, Jun 25, 2012 at 4:18 PM, Serge Smertin <
[email protected]

wrote:

so, what should i change?


Reply to this email directly or view it on GitHub:
#8 (comment)

@nfx
Copy link
Author

nfx commented Sep 8, 2012

ping

@schmittjoh
Copy link
Owner

This is not really related to AOP; could we add this to another bundle, maybe even Symfony itself?

@nfx
Copy link
Author

nfx commented Sep 19, 2012

hm, actually Symfony itself would even be a better solution, as it is directly related to class proxy generation. Where do you think we need to put it?

@schmittjoh
Copy link
Owner

Before you start writing code, I'd first start a discussion about it either
on Github (symfony/symfony), or the symfony-dev mailing list.

This could not only be used for AOP, but also to implement lazy-loading for
services (@lsmith and others might be interested in this).

On Wed, Sep 19, 2012 at 8:51 PM, Serge Smertin [email protected]:

hm, actually Symfony itself would even be a better solution, as it is
directly related to class proxy generation. Where do you think we need to
put it?


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-8702062.

processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="./Tests/bootstrap.php"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was the only line that change why the others?

@nfx
Copy link
Author

nfx commented Nov 8, 2012

So, what are we going to do? Me doing better implementation to be included in CG-lib or finishing up with this commit? Either option works.

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.

3 participants