1: <?php
2:
3: /**
4: * This file is part of the Nette Framework (http://nette.org)
5: *
6: * Copyright (c) 2004, 2011 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: */
20: interface IPresenterFactory
21: {
22:
23: /**
24: * @param string presenter name
25: * @return string class name
26: * @throws InvalidPresenterException
27: */
28: function getPresenterClass(& $name);
29:
30: /**
31: * Create new presenter instance.
32: * @param string presenter name
33: * @return IPresenter
34: */
35: function createPresenter($name);
36:
37: }
38: