Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 536 Bytes

presenters.md

File metadata and controls

35 lines (21 loc) · 536 Bytes

Presentery

Ukázka presenteru

namespace CmsModule\Administration\Presenters;

class ExamplePresenter extends BasePresenter
{

	/** @var ExampleFormFactory */
	protected $formFactory;

	public function injectFormFactory(ExampleFormFactory $formFactory)
	{
		$this->formFactory = $formFactory;
	}
	...

}

Registrace do frameworku

ukázka nastavení pro cestu Core:Admin:Example

factories:

	core.admin.examplePresenter:
		class: CmsModule\Administration\Presenters\ExamplePresenter
		tags: [presenter]