ProjectWithXsdExtension.php 535 B

1234567891011121314151617181920212223
  1. <?php
  2. use Symfony\Components\DependencyInjection\BuilderConfiguration;
  3. use Symfony\Components\DependencyInjection\Definition;
  4. use Symfony\Components\DependencyInjection\Loader\LoaderExtension;
  5. class ProjectWithXsdExtension extends ProjectExtension
  6. {
  7. public function getXsdValidationBasePath()
  8. {
  9. return __DIR__.'/schema';
  10. }
  11. public function getNamespace()
  12. {
  13. return 'http://www.example.com/schema/projectwithxsd';
  14. }
  15. public function getAlias()
  16. {
  17. return 'projectwithxsd';
  18. }
  19. }