src/Builder/BaseManagerDirBuilder.php
public function preBuild()
    {
        $build_path = $this->getBuildPath();

        if ($build_path) {
            if (is_dir($build_path)) {
                $build_path = rtrim($build_path, DIRECTORY_SEPARATOR);

                if (!is_dir("$build_path/Manager/Base")) {
                    $old_umask = umask(0);
                    $dir_created = mkdir("$build_path/Manager/Base");
                    umask($old_umask);

                    if ($dir_created) {
                        $this->triggerEvent('on_dir_created', ["$build_path/Manager/Base"]);
                    } else {
                        throw new RuntimeException("Failed to create '$build_path/Manager/Base' directory");
                    }
                }
            } else {
                throw new InvalidArgumentException("Directory '$build_path' not found");
            }
        }
    }
public function preBuild()
    {
        $build_path = $this->getBuildPath();

        if ($build_path) {
            if (is_dir($build_path)) {
                $build_path = rtrim($build_path, DIRECTORY_SEPARATOR);

                if (!is_dir("$build_path/Manager/Base")) {
                    $old_umask = umask(0);
                    $dir_created = mkdir("$build_path/Manager/Base");
                    umask($old_umask);

                    if ($dir_created) {
                        $this->triggerEvent('on_dir_created', ["$build_path/Manager/Base"]);
                    } else {
                        throw new RuntimeException("Failed to create '$build_path/Manager/Base' directory");
                    }
                }
            } else {
                throw new InvalidArgumentException("Directory '$build_path' not found");
            }
        }
    }
public function preBuild ( ) { $ build_path = $ this -> getBuildPath ( ) ; if ( $ build_path ) { if ( is_dir ( $ build_path ) ) { $ build_path = rtrim ( $ build_path , DIRECTORY_SEPARATOR ) ; if ( ! is_dir ( "$build_path/Manager/Base" ) ) { $ old_umask = umask ( 0 ) ; $ dir_created = mkdir ( "$build_path/Manager/Base" ) ; umask ( $ old_umask ) ; if ( $ dir_created ) { $ this -> triggerEvent ( 'on_dir_created' , [ "$build_path/Manager/Base" ] ) ; } else { throw new RuntimeException ( "Failed to create '$build_path/Manager/Base' directory" ) ; } } } else { throw new InvalidArgumentException ( "Directory '$build_path' not found" ) ; } } }
Execute prior to type build.
Execute prior to type build .