1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-11 07:34:22 +02:00

feat(core): new base_path option instead of old url to define app base path.

This commit is contained in:
Awilum
2021-09-04 14:07:41 +03:00
parent cb376e793a
commit b667d75586
2 changed files with 5 additions and 5 deletions

View File

@@ -161,8 +161,8 @@ if (filesystem()->file($preflightFlextypePath . '/' . $cacheID . '.php')->exists
// Store flextype merged data in the flextype registry.
registry()->set('flextype', $flextypeData);
// Set Flextype base path
setBasePath(registry()->get('flextype.settings.url'));
// Set Flextype Aplication base path
setBasePath(registry()->get('flextype.settings.base_path'));
// Add Routing Middleware
app()->add(new RoutingMiddleware(app()->getRouteResolver(), app()->getRouteCollector()->getRouteParser()));

View File

@@ -16,10 +16,10 @@ charset: UTF-8
# Available locales to use: src/flextype/config/locales.yaml
locale: en_US
# Application URL
# Application Base Path
#
# Define custom application url
url: '/flextype'
# Define application base path
base_path: '/flextype'
# Valid date format
#