Skip to content

Commit

Permalink
daily sheet read model wip (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas authored Jun 13, 2024
1 parent a029678 commit 805e09c
Show file tree
Hide file tree
Showing 16 changed files with 496 additions and 20 deletions.
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"doctrine/doctrine-migrations-bundle": "^3.3",
"fale/isbn": "^3.1",
"munusphp/munus": "^0.16",
"symfony/clock": "^7.1",
"symfony/console": "^7.1",
"symfony/dotenv": "^7.1",
"symfony/framework-bundle": "^7.1",
Expand All @@ -24,8 +25,10 @@
},
"require-dev": {
"behat/behat": "^3.14",
"dama/doctrine-test-bundle": "^8.2",
"friendsofphp/php-cs-fixer": "^3.58",
"phpstan/phpstan": "^1.11",
"phpstan/phpstan-symfony": "^1.4",
"phpunit/phpunit": "^11.1"
},
"autoload": {
Expand Down Expand Up @@ -60,6 +63,7 @@
"ci": [
"composer validate",
"composer audit",
"bin/console lint:container",
"@tests:database:reset",
"@check-cs",
"@phpstan",
Expand Down
263 changes: 262 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
DAMA\DoctrineTestBundle\DAMADoctrineTestBundle::class => ['test' => true],
];
Empty file removed config/routes.yaml
Empty file.
27 changes: 27 additions & 0 deletions config/services.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

declare(strict_types=1);

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use Akondas\Library\Lending\DailySheet\Infrastructure\DbalDailySheet;
use Akondas\Library\Lending\DailySheet\Model\DailySheet;
use Symfony\Component\Clock\ClockInterface;
use Symfony\Component\Clock\NativeClock;

return static function (ContainerConfigurator $configurator): void {
$services = $configurator->services()
->defaults()
->autowire()
->autoconfigure();

$services->set(NativeClock::class);
$services->alias(ClockInterface::class, NativeClock::class);

$services->set(DbalDailySheet::class);
$services->alias(DailySheet::class, DbalDailySheet::class);

if (in_array($configurator->env(), ['dev', 'test'], true)) {
$services->set(DbalDailySheet::class)->public();
}
};
6 changes: 0 additions & 6 deletions config/services.yaml

This file was deleted.

3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
includes:
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor/phpstan/phpstan-symfony/extension.neon

parameters:
level: max
Expand All @@ -10,6 +11,8 @@ parameters:
- public
- src
- tests
symfony:
container_xml_path: var/cache/test/Akondas_Library_Common_KernelTestDebugContainer.xml
ignoreErrors:
-
message: "#^Method.*should return Munus\\\\Control\\\\Either.*but returns Munus\\\\Control\\\\Either.*mixed.*.$#"
Loading

0 comments on commit 805e09c

Please sign in to comment.