SolveConsole/Controllers/DbController.php
public function createDbAction() {
        $config = DC::getDatabaseConfig('profiles/default');
        DatabaseService::configProfile(array(
            'user'    => $config['user'],
            'pass'    => $config['pass'],
        ));

        DBOperator::getInstance()->createDB($config['name']);
        $this->notify($config['name'], '+Database created:');
    }
public function createDbAction() {
        $config = DC::getDatabaseConfig('profiles/default');
        DatabaseService::configProfile(array(
            'user'    => $config['user'],
            'pass'    => $config['pass'],
        ));

        DBOperator::getInstance()->createDB($config['name']);
        $this->notify($config['name'], '+Database created:');
    }
public function createDbAction ( ) { $ config = DC :: getDatabaseConfig ( 'profiles/default' ) ; DatabaseService :: configProfile ( array ( 'user' => $ config [ 'user' ] , 'pass' => $ config [ 'pass' ] , ) ) ; DBOperator :: getInstance ( ) -> createDB ( $ config [ 'name' ] ) ; $ this -> notify ( $ config [ 'name' ] , '+Database created:' ) ; }
Created database for profile default
Created database for profile default