PageRenderTime 19ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 9ms app.codeStats 1ms

/zf/library/Zend/Application/Bootstrap/Bootstrapper.php

http://github.com/eryx/php-framework-benchmark
PHP | 94 lines | 12 code | 8 blank | 74 comment | 0 complexity | 829c43b473a845754534b8929e0b5bd3 MD5 | raw file
Possible License(s): MIT, BSD-3-Clause, Apache-2.0, LGPL-2.1, LGPL-3.0, BSD-2-Clause
 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-2011 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 23775 2011-03-01 17:25:24Z ralph $
21 */
22
23/**
24 * Interface for bootstrap classes
25 *
26 * @category   Zend
27 * @package    Zend_Application
28 * @subpackage Bootstrap
29 * @copyright  Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
30 * @license    http://framework.zend.com/license/new-bsd     New BSD License
31 */
32interface 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}