FakerController.php
public function actionGenerate()
    {
        $input = $this->parseArguments(func_get_args());

        $container = new Container();
        $container->set(GeneratorInterface::class, array_merge(['class' => $this->generator_fqn], $input['generator']));
        $container->set(DbProviderInterface::class, array_merge(['class' => $this->dbprovider_fqn], $input['dbprovider']));

        $this->generator_obj = $container->get(GeneratorInterface::class);

        if (!$this->force && !$this->confirmGeneration()) {
            return;
        }

        $this->dbprovider_obj = $container->get(DbProviderInterface::class);

        Console::startProgress(0, $this->count);
        foreach ($this->dbprovider_obj->export($this->count) as $count) {
            Console::updateProgress($this->count - $count, $this->count);
        }
        Console::endProgress(true);
    }
public function actionGenerate()
    {
        $input = $this->parseArguments(func_get_args());

        $container = new Container();
        $container->set(GeneratorInterface::class, array_merge(['class' => $this->generator_fqn], $input['generator']));
        $container->set(DbProviderInterface::class, array_merge(['class' => $this->dbprovider_fqn], $input['dbprovider']));

        $this->generator_obj = $container->get(GeneratorInterface::class);

        if (!$this->force && !$this->confirmGeneration()) {
            return;
        }

        $this->dbprovider_obj = $container->get(DbProviderInterface::class);

        Console::startProgress(0, $this->count);
        foreach ($this->dbprovider_obj->export($this->count) as $count) {
            Console::updateProgress($this->count - $count, $this->count);
        }
        Console::endProgress(true);
    }
public function actionGenerate ( ) { $ input = $ this -> parseArguments ( func_get_args ( ) ) ; $ container = new Container ( ) ; $ container -> set ( GeneratorInterface :: class , array_merge ( [ 'class' => $ this -> generator_fqn ] , $ input [ 'generator' ] ) ) ; $ container -> set ( DbProviderInterface :: class , array_merge ( [ 'class' => $ this -> dbprovider_fqn ] , $ input [ 'dbprovider' ] ) ) ; $ this -> generator_obj = $ container -> get ( GeneratorInterface :: class ) ; if ( ! $ this -> force && ! $ this -> confirmGeneration ( ) ) { return ; } $ this -> dbprovider_obj = $ container -> get ( DbProviderInterface :: class ) ; Console :: startProgress ( 0 , $ this -> count ) ; foreach ( $ this -> dbprovider_obj -> export ( $ this -> count ) as $ count ) { Console :: updateProgress ( $ this -> count - $ count , $ this -> count ) ; } Console :: endProgress ( true ) ; }
Generate fake data and
Generate fake data and