protected function migrate(OutputInterface $output, $source, $path, $framework)
    {
        foreach ($this->iterator($framework, $source) as $item) {
            $name = strtolower(str_replace($source, '', $item->getRealpath()));

            if ((boolean) $item->isDir() === false) {
                $date = date($this->times[$framework]);

                $this->type === 'migrations' && $name = $date . substr($name, 3);

                $output->writeln('<info>' . $path . $name . '</info>');

                copy($item, $path . $name) && sleep(1);

                continue;
            }

            ! file_exists($path . $name) && mkdir($path . $name);
        }
    }
protected function migrate(OutputInterface $output, $source, $path, $framework)
    {
        foreach ($this->iterator($framework, $source) as $item) {
            $name = strtolower(str_replace($source, '', $item->getRealpath()));

            if ((boolean) $item->isDir() === false) {
                $date = date($this->times[$framework]);

                $this->type === 'migrations' && $name = $date . substr($name, 3);

                $output->writeln('<info>' . $path . $name . '</info>');

                copy($item, $path . $name) && sleep(1);

                continue;
            }

            ! file_exists($path . $name) && mkdir($path . $name);
        }
    }
protected function migrate ( OutputInterface $ output , $ source , $ path , $ framework ) { foreach ( $ this -> iterator ( $ framework , $ source ) as $ item ) { $ name = strtolower ( str_replace ( $ source , '' , $ item -> getRealpath ( ) ) ) ; if ( ( boolean ) $ item -> isDir ( ) === false ) { $ date = date ( $ this -> times [ $ framework ] ) ; $ this -> type === 'migrations' && $ name = $ date . substr ( $ name , 3 ) ; $ output -> writeln ( '<info>' . $ path . $ name . '</info>' ) ; copy ( $ item , $ path . $ name ) && sleep ( 1 ) ; continue ; } ! file_exists ( $ path . $ name ) && mkdir ( $ path . $ name ) ; } }
Creates a copy of database files to the specified path.

@param  \Symfony\Component\Console\Output\OutputInterface $output
@param  string                                            $source
@param  string                                            $path
@param  string                                            $framework
@return void
Creates a copy of database files to the specified path .