generator/FakerGenerator.php
private function resolvePath($path_alias, $file_name)
    {
        $path = \Yii::getAlias($path_alias, false);
        $path = $path ? realpath($path) : $path;
        $file_name = !preg_match('/\.php$/i', $file_name) ? $file_name . '.php' : $file_name;

        if (!$path || !is_dir($path) || !file_exists($path . '/' . $file_name)) {
            throw new Exception("Faker template \"{$path}/{$file_name}\" not found");
        }

        return $path . '/' . $file_name;
    }
private function resolvePath($path_alias, $file_name)
    {
        $path = \Yii::getAlias($path_alias, false);
        $path = $path ? realpath($path) : $path;
        $file_name = !preg_match('/\.php$/i', $file_name) ? $file_name . '.php' : $file_name;

        if (!$path || !is_dir($path) || !file_exists($path . '/' . $file_name)) {
            throw new Exception("Faker template \"{$path}/{$file_name}\" not found");
        }

        return $path . '/' . $file_name;
    }
private function resolvePath ( $ path_alias , $ file_name ) { $ path = \ Yii :: getAlias ( $ path_alias , false ) ; $ path = $ path ? realpath ( $ path ) : $ path ; $ file_name = ! preg_match ( '/\.php$/i' , $ file_name ) ? $ file_name . '.php' : $ file_name ; if ( ! $ path || ! is_dir ( $ path ) || ! file_exists ( $ path . '/' . $ file_name ) ) { throw new Exception ( "Faker template \"{$path}/{$file_name}\" not found" ) ; } return $ path . '/' . $ file_name ; }
Resolve Yii aliases and check template file
@param $path_alias
@return string
@throws Exception
Resolve Yii aliases and check template file