Go\Core\AspectKernel::getOptions PHP Метод

getOptions() публичный Метод

Returns list of kernel options
public getOptions ( ) : array
Результат array
    public function getOptions()
    {
        return $this->options;
    }

Usage Example

Пример #1
0
 public function __construct(AspectKernel $kernel)
 {
     $this->kernel = $kernel;
     $this->options = $kernel->getOptions();
     $this->cacheDir = $this->options['cacheDir'];
     $this->appDir = $this->options['appDir'];
     if ($this->cacheDir && file_exists($this->cacheDir . self::CACHE_FILE_NAME)) {
         $this->cacheState = (include $this->cacheDir . self::CACHE_FILE_NAME);
     }
 }
All Usage Examples Of Go\Core\AspectKernel::getOptions