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

[BUGFIX] Incorrect variable container index #632

Merged
merged 1 commit into from
Jul 10, 2014
Merged

[BUGFIX] Incorrect variable container index #632

merged 1 commit into from
Jul 10, 2014

Conversation

bjo3rnf
Copy link
Contributor

@bjo3rnf bjo3rnf commented Jul 9, 2014

No description provided.

@@ -651,8 +651,8 @@ public function renderContent($menu) {
$tagContent = $this->autoRender($menu);
$this->tag->setContent($tagContent);
$deferredContent = $this->tag->render();
$this->viewHelperVariableContainer->addOrUpdate('FluidTYPO3\Vhs\ViewHelpers\Page\Menu\AbstractMenuViewHelper', 'deferredString', $deferredContent);
$this->viewHelperVariableContainer->addOrUpdate('FluidTYPO3\Vhs\ViewHelpers\Page\Menu\AbstractMenuViewHelper', 'deferredArray', $menu);
$this->viewHelperVariableContainer->addOrUpdate('\FluidTYPO3\Vhs\ViewHelpers\Page\Menu\AbstractMenuViewHelper', 'deferredString', $deferredContent);
Copy link
Member

Choose a reason for hiding this comment

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

The correct way is actually without leading backslash - if there are other occurrences we should fix those instead ;)

Choose a reason for hiding this comment

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

why would we not use a fully qualified name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's just an array key and thus some sort of CGL I guess.

@bjo3rnf
Copy link
Contributor Author

bjo3rnf commented Jul 10, 2014

Roger that. Force pushed.

@NamelessCoder
Copy link
Member

Reply for Danilo's lost question:

why would we not use a fully qualified name?

We always would, except when the class name is a string value like it is here. This includes get() on ObjectManager which expects a string not starting with a backslash.

NamelessCoder added a commit that referenced this pull request Jul 10, 2014
[BUGFIX] Incorrect variable container index
@NamelessCoder NamelessCoder merged commit 5d894d0 into FluidTYPO3:development Jul 10, 2014
@danilobuerger
Copy link

Ah ok. Kind of weird of ObjectManager though :-)

@bjo3rnf bjo3rnf deleted the deferredfix branch July 10, 2014 12:00
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