File indexing completed on 2025-01-26 05:29:16

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Application
0017  * @subpackage Bootstrap
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  * @version    $Id$
0021  */
0022 
0023 /**
0024  * Interface for bootstrap classes
0025  *
0026  * @category   Zend
0027  * @package    Zend_Application
0028  * @subpackage Bootstrap
0029  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0030  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0031  */
0032 interface Zend_Application_Bootstrap_Bootstrapper
0033 {
0034     /**
0035      * Constructor
0036      *
0037      * @param  Zend_Application $application
0038      */
0039     public function __construct($application);
0040 
0041     /**
0042      * Set bootstrap options
0043      *
0044      * @param  array $options
0045      * @return Zend_Application_Bootstrap_Bootstrapper
0046      */
0047     public function setOptions(array $options);
0048 
0049     /**
0050      * Retrieve application object
0051      *
0052      * @return Zend_Application|Zend_Application_Bootstrap_Bootstrapper
0053      */
0054     public function getApplication();
0055 
0056     /**
0057      * Retrieve application environment
0058      *
0059      * @return string
0060      */
0061     public function getEnvironment();
0062 
0063     /**
0064      * Retrieve list of class resource initializers (_init* methods). Returns
0065      * as resource/method pairs.
0066      *
0067      * @return array
0068      */
0069     public function getClassResources();
0070 
0071     /**
0072      * Retrieve list of class resource initializer names (resource names only,
0073      * no method names)
0074      *
0075      * @return array
0076      */
0077     public function getClassResourceNames();
0078 
0079     /**
0080      * Bootstrap application or individual resource
0081      *
0082      * @param  null|string $resource
0083      * @return mixed
0084      */
0085     public function bootstrap($resource = null);
0086 
0087     /**
0088      * Run the application
0089      *
0090      * @return void
0091      */
0092     public function run();
0093 }