- bug report? yes
- version: 2.4.6
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
trait PresenterTrait
{
/** @persistent */
public $locale;
}
class DefaultPresenter extends \Nette\Application\UI\Presenter
{
use PresenterTrait;
}
class SecondPresenter extends \Nette\Application\UI\Presenter
{
use PresenterTrait;
}
Description
When i have persistent parameter in trait, routes with this parameter don't work. Probably problem is here:
\Nette\Application\UI\Presenter::argsToParamsbecause reflection cannot load parameters from trait.Steps To Reproduce