fixed
This commit is contained in:
parent
9ca1fd42ae
commit
0dfe4fb5c6
@ -97,7 +97,7 @@ class Generator
|
|||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 'controller':
|
case 'controller':
|
||||||
return (new Controller())->dones();
|
return (new Controller())->getContent($controller);
|
||||||
case 'model':
|
case 'model':
|
||||||
return (new Model())->getContent($model);
|
return (new Model())->getContent($model);
|
||||||
default:
|
default:
|
||||||
|
@ -86,9 +86,8 @@ class Controller extends Factory
|
|||||||
}
|
}
|
||||||
|
|
||||||
$class->addProperty(
|
$class->addProperty(
|
||||||
(new Property($asModel))->public()
|
(new Property($asModel))->protected()
|
||||||
);
|
);
|
||||||
|
|
||||||
})
|
})
|
||||||
->getContent();
|
->getContent();
|
||||||
}
|
}
|
||||||
|
@ -58,8 +58,7 @@ class Composer
|
|||||||
{
|
{
|
||||||
$packages = array_merge($this->requires(), $this->requireDev());
|
$packages = array_merge($this->requires(), $this->requireDev());
|
||||||
|
|
||||||
|
return in_array($name, array_keys($packages));
|
||||||
return in_array($name, $packages);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user