1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (https://nette.org)
5: * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
6: */
7:
8: namespace Nette\Application;
9:
10:
11: /**
12: * Responsible for creating a new instance of given presenter.
13: */
14: interface IPresenterFactory
15: {
16:
17: /**
18: * Generates and checks presenter class name.
19: * @param string presenter name
20: * @return string class name
21: * @throws InvalidPresenterException
22: */
23: function getPresenterClass(&$name);
24:
25: /**
26: * Creates new presenter instance.
27: * @param string presenter name
28: * @return IPresenter
29: */
30: function createPresenter($name);
31: }
32: