You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i have persistent parameter in trait, routes with this parameter don't work. Probably problem is here: \Nette\Application\UI\Presenter::argsToParams because reflection cannot load parameters from trait.
Steps To Reproduce
trait PresenterTrait
{
/** @persistent */public$locale;
}
class DefaultPresenter extends \Nette\Application\UI\Presenter
{
use PresenterTrait;
}
class SecondPresenter extends \Nette\Application\UI\Presenter
{
use PresenterTrait;
}
The text was updated successfully, but these errors were encountered:
martinknor
changed the title
Persistent parameters doesn't work with traits
Persistent parameter doesn't work with traits
Jul 13, 2017
Description
When i have persistent parameter in trait, routes with this parameter don't work. Probably problem is here:
\Nette\Application\UI\Presenter::argsToParams
because reflection cannot load parameters from trait.Steps To Reproduce
The text was updated successfully, but these errors were encountered: