Completed
Push — dev ( 4deee6...a8b68f )
by Zach
02:10
created

Migrate::preformRefresh()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 8
c 0
b 0
f 0
nc 2
nop 3
dl 0
loc 13
rs 9.4285
1
<?php
2
3
namespace Yarak\Commands;
4
5
use Yarak\Migrations\Migrator;
6
use Yarak\Output\SymfonyOutput;
7
use Yarak\DB\Seeders\SeedRunner;
8
use Symfony\Component\Console\Input\InputOption;
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
12
class Migrate extends YarakCommand
13
{
14
    /**
15
     * Configure the command.
16
     */
17
    protected function configure()
18
    {
19
        $this->setName('migrate')
20
            ->setDescription('Run the database migrations.')
21
            ->setHelp('This command allows you to run migrations.');
22
    }
23
24
    /**
25
     * Execute the command.
26
     *
27
     * @param InputInterface  $input
28
     * @param OutputInterface $output
29
     */
30
    protected function execute(InputInterface $input, OutputInterface $output)
31
    {
32
        $this->getMigrator(new SymfonyOutput($output))->run();
33
    }
34
}
35