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;
}