<?php
$file = __DIR__.'/ProjectWithXsdExtensionInPhar.phar';
if (is_file($file)) { @
unlink($file);
}$phar =
new Phar($file, 0, 'ProjectWithXsdExtensionInPhar.phar'
);
$phar->
addFromString('ProjectWithXsdExtensionInPhar.php', <<<'EOT'
<?php
class ProjectWithXsdExtensionInPhar extends ProjectExtension
{
public function getXsdValidationBasePath(): string
{
return __DIR__.'/schema';
}
public function getNamespace(): string
{
return 'http://www.example.com/schema/projectwithxsdinphar';
}
public function getAlias(): string
{
return 'projectwithxsdinphar';
}
}