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: * Generates and checks presenter class name.
26: * @param string presenter name
27: * @return string class name
28: * @throws InvalidPresenterException
29: */
30: function getPresenterClass(& $name);
31:
32: /**
33: * Creates new presenter instance.
34: * @param string presenter name
35: * @return IPresenter
36: */
37: function createPresenter($name);
38:
39: }
40: