|
1 <?php |
|
2 /** |
|
3 * Zend Framework |
|
4 * |
|
5 * LICENSE |
|
6 * |
|
7 * This source file is subject to the new BSD license that is bundled |
|
8 * with this package in the file LICENSE.txt. |
|
9 * It is also available through the world-wide-web at this URL: |
|
10 * http://framework.zend.com/license/new-bsd |
|
11 * If you did not receive a copy of the license and are unable to |
|
12 * obtain it through the world-wide-web, please send an email |
|
13 * to license@zend.com so we can send you a copy immediately. |
|
14 * |
|
15 * @category Zend |
|
16 * @package Zend_Application |
|
17 * @subpackage Bootstrap |
|
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
20 * @version $Id: Bootstrapper.php 20096 2010-01-06 02:05:09Z bkarwin $ |
|
21 */ |
|
22 |
|
23 /** |
|
24 * Interface for bootstrap classes |
|
25 * |
|
26 * @category Zend |
|
27 * @package Zend_Application |
|
28 * @subpackage Bootstrap |
|
29 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
|
30 * @license http://framework.zend.com/license/new-bsd New BSD License |
|
31 */ |
|
32 interface Zend_Application_Bootstrap_Bootstrapper |
|
33 { |
|
34 /** |
|
35 * Constructor |
|
36 * |
|
37 * @param Zend_Application $application |
|
38 * @return void |
|
39 */ |
|
40 public function __construct($application); |
|
41 |
|
42 /** |
|
43 * Set bootstrap options |
|
44 * |
|
45 * @param array $options |
|
46 * @return Zend_Application_Bootstrap_Bootstrapper |
|
47 */ |
|
48 public function setOptions(array $options); |
|
49 |
|
50 /** |
|
51 * Retrieve application object |
|
52 * |
|
53 * @return Zend_Application|Zend_Application_Bootstrap_Bootstrapper |
|
54 */ |
|
55 public function getApplication(); |
|
56 |
|
57 /** |
|
58 * Retrieve application environment |
|
59 * |
|
60 * @return string |
|
61 */ |
|
62 public function getEnvironment(); |
|
63 |
|
64 /** |
|
65 * Retrieve list of class resource initializers (_init* methods). Returns |
|
66 * as resource/method pairs. |
|
67 * |
|
68 * @return array |
|
69 */ |
|
70 public function getClassResources(); |
|
71 |
|
72 /** |
|
73 * Retrieve list of class resource initializer names (resource names only, |
|
74 * no method names) |
|
75 * |
|
76 * @return array |
|
77 */ |
|
78 public function getClassResourceNames(); |
|
79 |
|
80 /** |
|
81 * Bootstrap application or individual resource |
|
82 * |
|
83 * @param null|string $resource |
|
84 * @return mixed |
|
85 */ |
|
86 public function bootstrap($resource = null); |
|
87 |
|
88 /** |
|
89 * Run the application |
|
90 * |
|
91 * @return void |
|
92 */ |
|
93 public function run(); |
|
94 } |