PhpBrew\Migrations::setupConfigFolder PHP Method

setupConfigFolder() public static method

Creates var/db/ folder for current php version if necessary to keep Compatibility with older versions of phpbrew
public static setupConfigFolder ( )
    public static function setupConfigFolder()
    {
        $path = Config::getCurrentPhpConfigScanPath();
        if (!file_exists($path)) {
            mkdir($path, 0755, true);
        }
    }

Usage Example

Exemplo n.º 1
0
 public function __construct($name, Logger $logger)
 {
     Migrations::setupConfigFolder();
     $this->logger = $logger;
     $this->meta = $this->buildMetaFromName($name);
 }