Skip to content

Commit ee50fe1

Browse files
authored
Merge pull request #1047 from cakephp/5.x-cleanup
clear up table class fallback usage
2 parents df3967a + e1d344e commit ee50fe1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Application.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,8 @@ public function bootstrap(): void
4949
parent::bootstrap();
5050

5151
if (PHP_SAPI !== 'cli') {
52-
FactoryLocator::add(
53-
'Table',
54-
(new TableLocator())->allowFallbackClass(false),
55-
);
52+
// The bake plugin requires fallback table classes to work properly
53+
FactoryLocator::add('Table', (new TableLocator())->allowFallbackClass(false));
5654
}
5755
}
5856

0 commit comments

Comments
 (0)