From 4a29fb18f36f51c701827698490a565501d83d25 Mon Sep 17 00:00:00 2001 From: Vladimir Tsykun Date: Sat, 30 Dec 2017 13:22:18 +0300 Subject: [PATCH] Fix error unable to find template "OkvpnMigrationBundle::schema-template.php.twig" --- src/Resources/config/services.yml | 1 + src/Tools/SchemaDumper.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Resources/config/services.yml b/src/Resources/config/services.yml index 0fe1a42..1e0b22f 100644 --- a/src/Resources/config/services.yml +++ b/src/Resources/config/services.yml @@ -55,6 +55,7 @@ services: okvpn_migration.tools.schema_dumper: class: Okvpn\Bundle\MigrationBundle\Tools\SchemaDumper + public: true arguments: - '@twig' diff --git a/src/Tools/SchemaDumper.php b/src/Tools/SchemaDumper.php index 564567d..d2d1211 100644 --- a/src/Tools/SchemaDumper.php +++ b/src/Tools/SchemaDumper.php @@ -7,7 +7,7 @@ class SchemaDumper extends AbstractVisitor { - const SCHEMA_TEMPLATE = 'OkvpnMigrationBundle::schema-template.php.twig'; + const SCHEMA_TEMPLATE = '@OkvpnMigration/schema-template.php.twig'; const DEFAULT_CLASS_NAME = 'AllMigration'; const DEFAULT_VERSION = 'v1_0';