forked from Enrise/Glitch_Lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Application.php
41 lines (40 loc) · 1.1 KB
/
Application.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* Glitch
*
* This source file is proprietary and protected by international
* copyright and trade secret laws. No part of this source file may
* be reproduced, copied, adapted, modified, distributed, transferred,
* translated, disclosed, displayed or otherwise used by anyone in any
* form or by any means without the express written authorization of
* 4worx software innovators BV (www.4worx.com)
*
* @category Glitch
* @package Glitch_Application
* @author 4worx <[email protected]>
* @copyright 2010, 4worx
* @version $Id$
*/
/**
* Overrided Zend_Application to be able to unset resources from the
* configuration before instantiating them
*
* @category Glitch
* @package Glitch_Application
*/
class Glitch_Application extends Zend_Application
{
/**
* Unset a resource in the resources array from the configuration options
*
* @param string $key
* @return void
*/
public function unsetResource($key)
{
if ($this->hasOption('resources'))
{
unset($this->_options['resources'][$key]);
}
}
}