Gets the name of the kernel
@api
string The kernel name
Overrides KernelInterface::getName
public function getName() {
if (null === $this->name) {
$this->name = preg_replace('/[^a-zA-Z0-9_]+/', '', basename($this->rootDir));
}
return $this->name;
}