-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bypass database build with SS_BYPASS_BUILD_DATABASE
- Loading branch information
Marco Hermo
committed
Sep 10, 2023
1 parent
55eba12
commit 66295b9
Showing
5 changed files
with
16 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,20 @@ | ||
--- | ||
Name: app-internal | ||
After: | ||
- '#coreroutes' | ||
Only: | ||
envvarset: SS_BYPASS_BUILD_DATABASE | ||
--- | ||
SilverStripe\Core\Injector\Injector: | ||
ZeroDatabase: | ||
class: App\Internal\ZeroDatabase | ||
properties: | ||
connector: '%$App\Internal\ZeroConnector' | ||
schemaManager: '%$App\Internal\ZeroSchemaManager' | ||
DevRequestFilter: | ||
class: SilverStripe\Control\Middleware\RequestHandlerMiddlewareAdapter | ||
properties: | ||
RequestHandler: '%$SilverStripe\Dev\DevBuildController' | ||
Middlewares: | ||
AdminRequestFilterMiddleware: '%$App\Internal\DevRequestFilterMiddleware' | ||
|
||
SilverStripe\Control\Director: | ||
rules: | ||
dev: | ||
Controller: '%$DevRequestFilter' | ||
--- | ||
Name: app-internal-database | ||
After: | ||
- '#coreroutes' | ||
Only: | ||
envvarset: SS_BYPASS_BUILD_DATABASE | ||
--- | ||
SilverStripe\ORM\DatabaseAdmin: | ||
extensions: | ||
- App\Extension\DatabaseAdminExtension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
app/tests/Unit/Internal/DevRequestFilterMiddlewareTest.php
This file was deleted.
Oops, something went wrong.