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:
@@ -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()));
|
||||
|
@@ -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
|
||||
#
|
||||
|
Reference in New Issue
Block a user