for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This is an example Environment, for when you want to use a custom $envVar
* or want to use other than the predefined modes.
*
* If you use the extended class, don't forget to modify your bootstrap file as well
* to call this class.
*/
class ExampleEnvironment extends \marcovtwout\YiiEnvironment\Environment
{
* @var string name of env var to check
protected $envVar = 'MY_ENVIRONMENT';
* Extend Environment class and merge parent array if you want to modify/extend these
* @return string[] list of valid modes
protected function getValidModes()
return array_merge(parent::getValidModes(), array(
250 => 'QUALITY_ASSURANCE',
));
}