protected function getConfig()
    {
        $configPath = $this->input->getOption('config') ?: (getcwd().'/flatbase.json');

        $defaults = new \stdClass();
        $defaults->path = null;

        if (file_exists($configPath)) {
            foreach (json_decode(file_get_contents($configPath)) as $property => $value) {
                $defaults->{$property} = $value;
            }
        }

        return $defaults;
    }
protected function getConfig()
    {
        $configPath = $this->input->getOption('config') ?: (getcwd().'/flatbase.json');

        $defaults = new \stdClass();
        $defaults->path = null;

        if (file_exists($configPath)) {
            foreach (json_decode(file_get_contents($configPath)) as $property => $value) {
                $defaults->{$property} = $value;
            }
        }

        return $defaults;
    }
protected function getConfig ( ) { $ configPath = $ this -> input -> getOption ( 'config' ) ? : ( getcwd ( ) . '/flatbase.json' ) ; $ defaults = new \ stdClass ( ) ; $ defaults -> path = null ; if ( file_exists ( $ configPath ) ) { foreach ( json_decode ( file_get_contents ( $ configPath ) ) as $ property => $ value ) { $ defaults -> { $ property } = $ value ; } } return $ defaults ; }
Get the config data

@return \stdClass
Get the config data