Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
stevewest
committed
May 9, 2016
1 parent
475c3b6
commit ce953d3
Showing
5 changed files
with
112 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?php | ||
/** | ||
* easyProperty.com | ||
* | ||
* @link www.easyproperty.com | ||
* @copyright Copyright (c) 2016 easyproperty.com | ||
* @license Proprietary | ||
*/ | ||
namespace Fuel\Config; | ||
|
||
/** | ||
* Holds configuration data | ||
*/ | ||
interface ContainerInterface | ||
{ | ||
/** | ||
* Returns the environment | ||
* | ||
* @return string | ||
*/ | ||
public function getEnvironment(); | ||
|
||
/** | ||
* Sets the environment | ||
* | ||
* @param string $enviroment | ||
*/ | ||
public function setEnvironment($environment); | ||
|
||
/** | ||
* Unloads a config group | ||
* | ||
* @param string $group | ||
*/ | ||
public function unload($group); | ||
|
||
/** | ||
* Reloads a group | ||
* | ||
* @param string $name | ||
* @param string|boolean $group | ||
* | ||
* @return array|null | ||
*/ | ||
public function reload($name, $group = true); | ||
|
||
/** | ||
* Loads a config file | ||
* | ||
* @param string $name | ||
* @param null|string|boolean $group | ||
* | ||
* @return array|null | ||
*/ | ||
public function load($name, $group = null); | ||
|
||
/** | ||
* Stores a config file | ||
* | ||
* @param string $group | ||
* @param string|null $destination | ||
* | ||
* @throws \RuntimeException | ||
*/ | ||
public function save($group, $destination = null); | ||
|
||
/** | ||
* Adds a path | ||
* | ||
* @param string $path | ||
* | ||
* @return $this | ||
*/ | ||
public function addPath($path); | ||
|
||
/** | ||
* Adds paths to look in | ||
* | ||
* @param array $paths | ||
*/ | ||
public function addPaths(array $paths); | ||
|
||
/** | ||
* Removes a path | ||
* | ||
* @param string $path | ||
*/ | ||
public function removePath($path); | ||
|
||
/** | ||
* Removes paths | ||
* | ||
* @param array $paths | ||
*/ | ||
public function removePaths(array $paths); | ||
|
||
/** | ||
* Delete data from the container | ||
* | ||
* @param string $key key to delete | ||
* | ||
* @return boolean delete success boolean | ||
* @since 2.0.0 | ||
*/ | ||
public function delete($key); | ||
} |