Commit 62d8c09c authored by Taylor Otwell's avatar Taylor Otwell

trim a long ling.

parent 851db170
......@@ -224,10 +224,12 @@ class Migrator extends Task {
{
$stub = File::get(path('sys').'cli/tasks/migrate/stub'.EXT);
$prefix = Bundle::class_prefix($bundle);
// The class name is formatted simialrly to tasks and controllers,
// where the bundle name is prefixed to the class if it is not in
// the default bundle.
$class = Bundle::class_prefix($bundle).Str::classify($migration);
// the default "application" bundle.
$class = $prefix.Str::classify($migration);
return str_replace('{{class}}', $class, $stub);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment