mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 09:32:43 +00:00
parent
e6ef218600
commit
35bf3097cd
2 changed files with 3 additions and 0 deletions
|
@ -479,6 +479,7 @@ class TestTask extends BakeTask {
|
|||
*/
|
||||
public function generateUses($type, $realType, $className) {
|
||||
$uses = array();
|
||||
$type = strtolower($type);
|
||||
if ($type == 'component') {
|
||||
$uses[] = array('ComponentCollection', 'Controller');
|
||||
$uses[] = array('Component', 'Controller');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue