diff --git a/installer/Application/Common/resources/app.php b/installer/Application/Common/resources/app.php index a9c5412..29a0e93 100644 --- a/installer/Application/Common/resources/app.php +++ b/installer/Application/Common/resources/app.php @@ -11,7 +11,7 @@ // settings for you. \mb_internal_encoding('UTF-8'); -\error_reporting((E_ALL | E_STRICT) ^ E_DEPRECATED); +\error_reporting(E_ALL ^ E_DEPRECATED); \ini_set('display_errors', 'stderr'); // Register Composer's auto loader. @@ -21,6 +21,7 @@ // Initialize shared container, bindings, directories and etc. $options = new Options(); $options->allowSingletonsRebinding = false; +$options->validateArguments = false; $container = new Container(options: $options); $app = Kernel::create( directories: ['root' => __DIR__], diff --git a/installer/Application/Web/Generator/Env.php b/installer/Application/Web/Generator/Env.php index 4fce763..b7b8f1b 100644 --- a/installer/Application/Web/Generator/Env.php +++ b/installer/Application/Web/Generator/Env.php @@ -11,6 +11,14 @@ final class Env implements GeneratorInterface { public function process(Context $context): void { + $context->envConfigurator->addGroup( + values: [ + 'VIEW_CACHE' => false, + ], + comment: 'View component options', + priority: 9, + ); + $context->envConfigurator->addGroup( values: [ 'SESSION_LIFETIME' => 86400, diff --git a/installer/Application/Web/Generator/ViewRenderer.php b/installer/Application/Web/Generator/ViewRenderer.php index 2897b7d..142f022 100644 --- a/installer/Application/Web/Generator/ViewRenderer.php +++ b/installer/Application/Web/Generator/ViewRenderer.php @@ -23,7 +23,7 @@ public function process(Context $context): void if ($this->isTemplateEngineInstalled($context->application)) { $context->resource->copy( - \dirname(__DIR__) . '/Generator/resources/ViewRenderer.php', + __DIR__ . '/resources/ViewRenderer.php', self::TARGET_PATH, ); $context->exceptionHandlerBootloader->addBinding(RendererInterface::class, Renderer::class); diff --git a/installer/Internal/Generator/Bootloader/DomainInterceptorsConfigurator.php b/installer/Internal/Generator/Bootloader/DomainInterceptorsConfigurator.php index 81c0485..91b75c9 100644 --- a/installer/Internal/Generator/Bootloader/DomainInterceptorsConfigurator.php +++ b/installer/Internal/Generator/Bootloader/DomainInterceptorsConfigurator.php @@ -7,7 +7,7 @@ use App\Application\Bootloader\AppBootloader; use Installer\Internal\ClassMetadataInterface; use Installer\Internal\ReflectionClassMetadata; -use Spiral\Core\CoreInterface; +use Spiral\Interceptors\HandlerInterface; use Spiral\Reactor\Writer; final class DomainInterceptorsConfigurator extends BootloaderConfigurator @@ -18,7 +18,7 @@ public function __construct( ) { parent::__construct($class, $writer); - $this->append('SINGLETONS', new ClassMethodBinding(CoreInterface::class, 'domainCore')); + $this->append('SINGLETONS', new ClassMethodBinding(HandlerInterface::class, 'domainCore')); } public function addInterceptor(string $class): void diff --git a/installer/Module/CycleBridge/resources/config/cycle.php b/installer/Module/CycleBridge/resources/config/cycle.php index a2d0a5e..a5de82e 100644 --- a/installer/Module/CycleBridge/resources/config/cycle.php +++ b/installer/Module/CycleBridge/resources/config/cycle.php @@ -58,7 +58,7 @@ // ], ], - 'warmup' => env('CYCLE_SCHEMA_WARMUP', false), + 'warmup' => env('RR_MODE') === null ? false : env('CYCLE_SCHEMA_WARMUP', false), /** * Custom relation types for entities diff --git a/installer/Module/CycleBridge/resources/config/migration.php b/installer/Module/CycleBridge/resources/config/migration.php index a25c2e4..9198958 100644 --- a/installer/Module/CycleBridge/resources/config/migration.php +++ b/installer/Module/CycleBridge/resources/config/migration.php @@ -2,6 +2,8 @@ declare(strict_types=1); +use Spiral\Boot\Environment\AppEnvironment; + /** * Migrations configuration. * @@ -21,5 +23,5 @@ /** * When set to true no confirmation will be requested on migration run. */ - 'safe' => env('APP_ENV') === 'local', + 'safe' => env('SAFE_MIGRATIONS', spiral(AppEnvironment::class)->isProduction()), ]; diff --git a/installer/Module/Exception/resources/app.php b/installer/Module/Exception/resources/app.php index ccd6c93..3b8356e 100644 --- a/installer/Module/Exception/resources/app.php +++ b/installer/Module/Exception/resources/app.php @@ -2,15 +2,17 @@ declare(strict_types=1); -use App\Application\Kernel; use App\Application\Exception\Handler; +use App\Application\Kernel; +use Spiral\Core\Container; +use Spiral\Core\Options; // If you forgot to configure some of this in your php.ini file, // then don't worry, we will set the standard environment // settings for you. \mb_internal_encoding('UTF-8'); -\error_reporting((E_ALL | E_STRICT) ^ E_DEPRECATED); +\error_reporting(E_ALL ^ E_DEPRECATED); \ini_set('display_errors', 'stderr'); // Register Composer's auto loader. @@ -18,9 +20,14 @@ // Initialize shared container, bindings, directories and etc. +$options = new Options(); +$options->allowSingletonsRebinding = false; +$options->validateArguments = false; +$container = new Container(options: $options); $app = Kernel::create( directories: ['root' => __DIR__], exceptionHandler: Handler::class, + container: $container, )->run(); if ($app === null) { diff --git a/installer/Module/TemplateEngines/PlainPHP/resources/views/home.php b/installer/Module/TemplateEngines/PlainPHP/resources/views/home.php index b878ed0..31ca7b2 100644 --- a/installer/Module/TemplateEngines/PlainPHP/resources/views/home.php +++ b/installer/Module/TemplateEngines/PlainPHP/resources/views/home.php @@ -259,30 +259,9 @@ d="M17.6 1.3C16.2.7 14.8.3 13.3 0l-.6 1.1a16 16 0 0 0-4.7 0L7.4 0C6 .3 4.5.7 3.2 1.3.5 5.3-.3 9.3 0 13.1c1.6 1.1 3.3 2 5.2 2.6L6.5 14c-.7-.2-1.2-.5-1.8-.8l.4-.4a12.3 12.3 0 0 0 10.5 0l.4.4-1.7.8 1 1.8c2-.6 3.8-1.5 5.3-2.6.5-4.5-.7-8.4-3-11.8ZM6.9 10.7c-1 0-1.8-1-1.8-2 0-1.2.8-2.1 1.8-2.1s1.9.9 1.9 2c0 1.2-.8 2.1-1.9 2.1Zm7 0c-1.1 0-2-1-2-2 0-1.2.9-2.1 2-2.1 1 0 1.8.9 1.8 2 0 1.2-.9 2.1-1.9 2.1Z"> - - - - - - - - - - -
Spiral Framework v3.8 PHP
+
Spiral Framework 3 PHP
-
Spiral Framework v3.8 PHP @php echo PHP_VERSION; @endphp
+
Spiral Framework 3 PHP @php echo PHP_VERSION; @endphp
-
Spiral Framework v3.8 PHP {{ constant('PHP_VERSION') }}
+
Spiral Framework 3 PHP {{ constant('PHP_VERSION') }}