File tree 1 file changed +11
-1
lines changed 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,22 @@ Usage
14
14
-----
15
15
16
16
```` php
17
+ <?php
18
+
19
+ use Symfony\Component\Console\Output\NullOutput;
20
+ use DTL\PhpcrMigrations\VersionStorage;
21
+ use DTL\PhpcrMigrations\VersionFinder;
22
+ use DTL\PhpcrMigrations\Migrator;
23
+
17
24
$storage = new VersionStorage($phpcrSession);
18
25
$finder = new VersionFinder(array('/path/to/migrations'));
19
26
20
27
$versions = $finder->getVersionCollection();
21
28
$migrator = new Migrator($session, $versionCollection, $storage);
22
29
23
30
$to = '201504241744';
24
- $migrator->migrate($to);
31
+ $output = new NullOutput();
32
+ $migrator->migrate($to, $output);
25
33
````
26
34
27
35
Versions
@@ -32,6 +40,8 @@ Version classes contain `up` and `down` methods. The class is quite simple:
32
40
```` php
33
41
<?php
34
42
43
+ use DTL\PhpcrMigrations\VersionInterface;
44
+
35
45
class Version201504241200 implements VersionInterface
36
46
{
37
47
public function up(SessionInterface $session)
You can’t perform that action at this time.
0 commit comments