Go\Core\AspectKernel::normalizeOptions PHP Method

normalizeOptions() protected method

Normalizes options for the kernel
protected normalizeOptions ( array $options ) : array
$options array List of options
return array
    protected function normalizeOptions(array $options)
    {
        $options = array_replace($this->getDefaultOptions(), $options);
        if ($options['cacheDir']) {
            $options['excludePaths'][] = $options['cacheDir'];
        }
        $options['excludePaths'][] = __DIR__ . '/../';
        $options['appDir'] = PathResolver::realpath($options['appDir']);
        $options['cacheDir'] = PathResolver::realpath($options['cacheDir']);
        $options['cacheFileMode'] = (int) $options['cacheFileMode'];
        $options['includePaths'] = PathResolver::realpath($options['includePaths']);
        $options['excludePaths'] = PathResolver::realpath($options['excludePaths']);
        return $options;
    }