Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from sandrokeil/develop
Develop
- Loading branch information
Showing
7 changed files
with
229 additions
and
12 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,26 @@ | ||
<?php | ||
/** | ||
* Sake | ||
* | ||
* @link http://github.com/sandrokeil/EasyConfig for the canonical source repository | ||
* @copyright Copyright (c) 2014 Sandro Keil | ||
* @license http://github.com/sandrokeil/EasyConfig/blob/master/LICENSE.txt New BSD License | ||
*/ | ||
|
||
namespace Sake\EasyConfig\Service; | ||
|
||
/** | ||
* Class MandatoryOptionsInterface | ||
* | ||
* Use this interface in a factory which extends from AbstractConfigurableFactory to check for required options | ||
* automatically. | ||
*/ | ||
interface MandatoryOptionsInterface | ||
{ | ||
/** | ||
* Returns a list of mandatory options which must be available | ||
* | ||
* @return array | ||
*/ | ||
public function getMandatoryOptions(); | ||
} |
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
17 changes: 17 additions & 0 deletions
17
test/Service/TestAsset/AbstractMandatoryOptionsFactory.php
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,17 @@ | ||
<?php | ||
/** | ||
* Sake | ||
* | ||
* @link http://github.com/sandrokeil/EasyConfig for the canonical source repository | ||
* @copyright Copyright (c) 2014 Sandro Keil | ||
* @license http://github.com/sandrokeil/EasyConfig/blob/master/LICENSE.txt New BSD License | ||
*/ | ||
|
||
namespace SakeTest\EasyConfig\Service\TestAsset; | ||
|
||
use Sake\EasyConfig\Service; | ||
|
||
abstract class AbstractMandatoryOptionsFactory extends Service\AbstractConfigurableFactory implements | ||
Service\MandatoryOptionsInterface | ||
{ | ||
} |