Fix install

This commit is contained in:
Romain Neutron
2013-05-23 18:52:41 +02:00
parent 70d37b1f6a
commit 9285536d0d
6 changed files with 6 additions and 59 deletions

View File

@@ -1,50 +0,0 @@
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2011 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Simple registry object for setup when appbox registry does not exists yet
*
* @package Setup
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
class Setup_Registry implements registryInterface
{
protected $datas = array();
public function __construct()
{
$this->datas['GV_RootPath'] = realpath(__DIR__ . '/../../..') . '/';
}
public function get($key, $defaultvalue = null)
{
return isset($this->datas[$key]) ? $this->datas[$key] : $defaultvalue;
}
public function set($key, $value, $type)
{
$this->datas[$key] = $value;
}
public function is_set($key)
{
return isset($this->datas[$key]);
}
public function un_set($key)
{
if (isset($this->datas[$key]))
unset($datas[$key]);
return $this;
}
}