if (!
is_file($path)) { // Generate the class if the file not exists
$this->classes
[] =
$rootClass;
$this->
buildNode($rootNode,
$rootClass,
$this->
getSubNamespace($rootClass));
$rootClass->
addImplements(ConfigBuilderInterface::
class);
$rootClass->
addMethod('getExtensionAlias', '
public function NAME(): string
{
return \'ALIAS\';
}',
['ALIAS' =>
$rootNode->
getPath()]);
$this->
writeClasses();
} return function D
) use ($path,
$rootClass) { require_once $path;
$className =
$rootClass->
getFqcn();
return new $className();
};
} private function getFullPath(ClassBuilder
$class): string
{