public function prepare($listener)
    {
        if (! $this->requirements->check()) {
            return $listener->preparationNotCompleted();
        }

        $this->installer->migrate();

        return $listener->preparationCompleted();
    }
public function prepare($listener)
    {
        if (! $this->requirements->check()) {
            return $listener->preparationNotCompleted();
        }

        $this->installer->migrate();

        return $listener->preparationCompleted();
    }
public function prepare ( $ listener ) { if ( ! $ this -> requirements -> check ( ) ) { return $ listener -> preparationNotCompleted ( ) ; } $ this -> installer -> migrate ( ) ; return $ listener -> preparationCompleted ( ) ; }
Run migration and prepare the database.

@param  object  $listener

@return mixed
Run migration and prepare the database .