summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes M. Schmitt <schmittjoh@gmail.com>2012-03-11 13:54:49 +0100
committerVictor Berchet <victor@suumit.com>2012-03-11 14:52:28 +0100
commitd7a8f93f71c8369f8244adc1234ad640a97c3a8b (patch)
tree67397e5c4934de3852de8b58df5ada37ab50bd55
parent9d9dede252acbe9866177a2355b905a6ea1282e4 (diff)
downloadsymfony-security-d7a8f93f71c8369f8244adc1234ad640a97c3a8b.zip
symfony-security-d7a8f93f71c8369f8244adc1234ad640a97c3a8b.tar.gz
symfony-security-d7a8f93f71c8369f8244adc1234ad640a97c3a8b.tar.bz2
[Security]replaced acl:init command with postGenerateSchema listener
-rw-r--r--Acl/Dbal/Schema.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/Acl/Dbal/Schema.php b/Acl/Dbal/Schema.php
index 010a51e..7d47e1c 100644
--- a/Acl/Dbal/Schema.php
+++ b/Acl/Dbal/Schema.php
@@ -43,6 +43,22 @@ final class Schema extends BaseSchema
}
/**
+ * Merges ACL schema with the given schema.
+ *
+ * @param BaseSchema $schema
+ */
+ public function addToSchema(BaseSchema $schema)
+ {
+ foreach ($this->getTables() as $table) {
+ $schema->_addTable($table);
+ }
+
+ foreach ($this->getSequences() as $sequence) {
+ $schema->_addSequence($sequence);
+ }
+ }
+
+ /**
* Adds the class table to the schema
*/
protected function addClassTable()