public function isFeatureEnabled($featureName)
    {
        try {
            $path = preg_split('/\./', $featureName);

            $foundValue = $this->findValueInMultiArray($path, $this->features);

            if (is_array($foundValue)) {
                return $this->checkEveryChild($foundValue);
            } else {
                return $foundValue;
            }
        } catch (\OutOfRangeException $e) {
            throw new FeatureNotDefinedException($featureName);
        }
    }
public function isFeatureEnabled($featureName)
    {
        try {
            $path = preg_split('/\./', $featureName);

            $foundValue = $this->findValueInMultiArray($path, $this->features);

            if (is_array($foundValue)) {
                return $this->checkEveryChild($foundValue);
            } else {
                return $foundValue;
            }
        } catch (\OutOfRangeException $e) {
            throw new FeatureNotDefinedException($featureName);
        }
    }
public function isFeatureEnabled ( $ featureName ) { try { $ path = preg_split ( '/\./' , $ featureName ) ; $ foundValue = $ this -> findValueInMultiArray ( $ path , $ this -> features ) ; if ( is_array ( $ foundValue ) ) { return $ this -> checkEveryChild ( $ foundValue ) ; } else { return $ foundValue ; } } catch ( \ OutOfRangeException $ e ) { throw new FeatureNotDefinedException ( $ featureName ) ; } }
Tests if given feature is enabled

@param string $featureName
@return bool
@throws FeatureNotDefinedException
Tests if given feature is enabled