public function Kernel::getName in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Kernel.php \Symfony\Component\HttpKernel\Kernel::getName()
Gets the name of the kernel.
Return value
string The kernel name
Overrides KernelInterface::getName
1 call to Kernel::getName()
- Kernel::__construct in vendor/
symfony/ http-kernel/ Kernel.php - Constructor.
1 method overrides Kernel::getName()
- KernelForTest::getName in vendor/
symfony/ http-kernel/ Tests/ DataCollector/ ConfigDataCollectorTest.php - Gets the name of the kernel.
File
- vendor/
symfony/ http-kernel/ Kernel.php, line 301
Class
- Kernel
- The Kernel is the heart of the Symfony system.
Namespace
Symfony\Component\HttpKernelCode
public function getName() {
if (null === $this->name) {
$this->name = preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->rootDir));
}
return $this->name;
}