From cee68d8e2599ba8435cf0342d64a2ab6ba405831 Mon Sep 17 00:00:00 2001 From: Howriq Date: Sun, 23 Nov 2025 21:39:05 +0200 Subject: [PATCH 1/4] local.php Signed-off-by: Howriq --- config/autoload/local.php | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/config/autoload/local.php b/config/autoload/local.php index a58f3f8..ba617c7 100644 --- a/config/autoload/local.php +++ b/config/autoload/local.php @@ -11,35 +11,13 @@ $baseUrl = 'http://light.dotkernel.localhost'; -$databases = [ - 'default' => [ - 'host' => 'localhost', - 'dbname' => 'light', - 'user' => 'root', - 'password' => '123', - 'port' => 3306, - 'driver' => 'pdo_mysql', - 'charset' => 'utf8mb4', - 'collate' => 'utf8mb4_general_ci', - ], - // you can add more database connections into this array -]; - return [ - 'databases' => $databases, - 'doctrine' => [ - 'connection' => [ - 'orm_default' => [ - 'params' => $databases['default'], - ], - ], - ], 'application' => [ 'url' => $baseUrl, ], - 'routes' => [ + 'routes' => [ 'page' => [ - 'about' => 'about', + 'about' => 'about', 'who-we-are' => 'who-we-are', ], ], From f840e35f245f59c9053047e3382ee6ef134562aa Mon Sep 17 00:00:00 2001 From: Howriq Date: Mon, 24 Nov 2025 00:54:40 +0200 Subject: [PATCH 2/4] scale for images, introduction.md Signed-off-by: Howriq --- config/cli-config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/cli-config.php b/config/cli-config.php index 0b723df..275f135 100644 --- a/config/cli-config.php +++ b/config/cli-config.php @@ -11,7 +11,7 @@ $entityManager = $container->get(EntityManager::class); $entityManager->getEventManager(); - +// return DependencyFactory::fromEntityManager( new ConfigurationArray($container->get('config')['doctrine']['migrations']), new ExistingEntityManager($entityManager) From 853c271062512f1c5f9c130714bae5e992f23465 Mon Sep 17 00:00:00 2001 From: Howriq Date: Mon, 24 Nov 2025 13:17:12 +0200 Subject: [PATCH 3/4] remove migrations related content Signed-off-by: Howriq --- bin/doctrine-migrations | 8 -------- config/cli-config.php | 18 ------------------ src/App/src/ConfigProvider.php | 20 ++++++-------------- 3 files changed, 6 insertions(+), 40 deletions(-) delete mode 100644 bin/doctrine-migrations delete mode 100644 config/cli-config.php diff --git a/bin/doctrine-migrations b/bin/doctrine-migrations deleted file mode 100644 index d40cc55..0000000 --- a/bin/doctrine-migrations +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env php -get(EntityManager::class); -$entityManager->getEventManager(); -// -return DependencyFactory::fromEntityManager( - new ConfigurationArray($container->get('config')['doctrine']['migrations']), - new ExistingEntityManager($entityManager) -); diff --git a/src/App/src/ConfigProvider.php b/src/App/src/ConfigProvider.php index c1dec1a..f41f864 100644 --- a/src/App/src/ConfigProvider.php +++ b/src/App/src/ConfigProvider.php @@ -96,12 +96,12 @@ private function getDoctrineConfig(): array ], 'configuration' => [ 'orm_default' => [ - 'result_cache' => 'filesystem', - 'metadata_cache' => 'filesystem', - 'query_cache' => 'filesystem', - 'hydration_cache' => 'array', - 'typed_field_mapper' => null, - 'second_level_cache' => [ + 'result_cache' => 'filesystem', + 'metadata_cache' => 'filesystem', + 'query_cache' => 'filesystem', + 'hydration_cache' => 'array', + 'typed_field_mapper' => null, + 'second_level_cache' => [ 'enabled' => true, 'default_lifetime' => 3600, 'default_lock_lifetime' => 60, @@ -117,14 +117,6 @@ private function getDoctrineConfig(): array 'class' => MappingDriverChain::class, ], ], - 'migrations' => [ - // Modify this line based on where you would like to have you migrations - 'migrations_paths' => [ - 'Migrations' => 'src/Migrations', - ], - 'all_or_nothing' => true, - 'check_database_platform' => true, - ], 'types' => [ UuidType::NAME => UuidType::class, ], From df8f850577e21d134e5b6095bf3429090c6c5274 Mon Sep 17 00:00:00 2001 From: Howriq Date: Mon, 24 Nov 2025 13:17:32 +0200 Subject: [PATCH 4/4] remove migrations related content Signed-off-by: Howriq --- config/autoload/local.php | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/config/autoload/local.php b/config/autoload/local.php index ba617c7..a58f3f8 100644 --- a/config/autoload/local.php +++ b/config/autoload/local.php @@ -11,13 +11,35 @@ $baseUrl = 'http://light.dotkernel.localhost'; +$databases = [ + 'default' => [ + 'host' => 'localhost', + 'dbname' => 'light', + 'user' => 'root', + 'password' => '123', + 'port' => 3306, + 'driver' => 'pdo_mysql', + 'charset' => 'utf8mb4', + 'collate' => 'utf8mb4_general_ci', + ], + // you can add more database connections into this array +]; + return [ + 'databases' => $databases, + 'doctrine' => [ + 'connection' => [ + 'orm_default' => [ + 'params' => $databases['default'], + ], + ], + ], 'application' => [ 'url' => $baseUrl, ], - 'routes' => [ + 'routes' => [ 'page' => [ - 'about' => 'about', + 'about' => 'about', 'who-we-are' => 'who-we-are', ], ],