Symfony\Component\HttpKernel\Kernel::isDebug PHP Method

isDebug() public method

public isDebug ( )
    public function isDebug()
    {
        return $this->debug;
    }

Same methods

Kernel::isDebug ( ) : boolean

Usage Example

 /**
  * Collects information about the Symfony kernel.
  *
  * @return Value\SymfonyKernelSystemInfo
  */
 public function collect()
 {
     ksort($this->bundles, SORT_FLAG_CASE | SORT_STRING);
     return new Value\SymfonyKernelSystemInfo(['environment' => $this->kernel->getEnvironment(), 'debugMode' => $this->kernel->isDebug(), 'version' => Kernel::VERSION, 'bundles' => $this->bundles, 'rootDir' => $this->kernel->getRootDir(), 'name' => $this->kernel->getName(), 'cacheDir' => $this->kernel->getCacheDir(), 'logDir' => $this->kernel->getLogDir(), 'charset' => $this->kernel->getCharset()]);
 }