Skip to content

Commit 440e41f

Browse files
authored
Merge pull request #1048 from cakephp/dereuromark-patch-1
Move table fallback to Bake
2 parents d0e8026 + c1e2982 commit 440e41f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Application.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,8 @@ public function bootstrap(): void
4848
// Call parent to load bootstrap from files.
4949
parent::bootstrap();
5050

51-
if (PHP_SAPI !== 'cli') {
52-
FactoryLocator::add(
53-
'Table',
54-
(new TableLocator())->allowFallbackClass(false),
55-
);
56-
}
51+
// By default, does not allow fallback classes.
52+
FactoryLocator::add('Table', (new TableLocator())->allowFallbackClass(false));
5753
}
5854

5955
/**

0 commit comments

Comments
 (0)