Skip to content

Persistent parameter doesn't work with traits #183

Description

@martinknor
  • 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;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions