1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
7: *
8: * For the full copyright and license information, please view
9: * the file license.txt that was distributed with this source code.
10: * @package Nette\Application
11: */
12:
13:
14:
15: /**
16: * Responsible for creating a new instance of given presenter.
17: *
18: * @author Jan Tichý <tichy@medio.cz>
19: * @package Nette\Application
20: */
21: interface IPresenterFactory
22: {
23:
24: /**
25: * @param string presenter name
26: * @return string class name
27: * @throws InvalidPresenterException
28: */
29: function getPresenterClass(& $name);
30:
31: /**
32: * Create new presenter instance.
33: * @param string presenter name
34: * @return IPresenter
35: */
36: function createPresenter($name);
37:
38: }
39: