Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Make Template guesser look at parent classes for bundle #98

Closed
wants to merge 1 commit into from
Closed

Make Template guesser look at parent classes for bundle #98

wants to merge 1 commit into from

Conversation

CodingNinja
Copy link

I was working on some code that generates proxy classes for my controllers and got stuck so I installed the CG library for some reference and have just came to realize that the FrameworkExtraBundle was now broken.
Now it look at the class_parents of the $bundleName to see if maybe one of the parents is in the bundle, if so, break out and keep going or throw the ex as was expected

@@ -57,7 +57,25 @@ public function guessTemplateName($controller, Request $request, $engine = 'twig
Copy link
Contributor

Choose a reason for hiding this comment

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

please don't change file permissions. If you are on windows, you can use git config core.filemode false to configure git not to change them.

fabpot added a commit that referenced this pull request Mar 18, 2012
Commits
-------

804f63f Use single variable for reflection class instance
7a0c7c0 Make Template guesser look at parent classes for bundle

Discussion
----------

Make Template guesser look at parent classes for bundle (The better way)

Solves the same issue as this pull request: #98

but is a better way to do that - inside getBundleForClass() method and without catching exceptions (which must be slower and would be the default behavior for all secured via annotations controllers with the latest JMSSecurityExtraBundle)

---------------------------------------------------------------------------

by olegstepura at 2012-03-08T22:28:31Z

Fixes https://github.com/symfony/symfony-standard/issues/285 after applying symfony/symfony-standard#275
@fabpot
Copy link
Member

fabpot commented Mar 18, 2012

see #104

@fabpot fabpot closed this Mar 18, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants