Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codesniffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
name: "Codesniffer"
uses: contributte/.github/.github/workflows/codesniffer.yml@v1
with:
php: "8.2"
php: "8.4"
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/nette-tester-coverage.yml@v1
with:
php: "8.2"
php: "8.4"
make: "setup coverage"
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
name: "Phpstan"
uses: contributte/.github/.github/workflows/phpstan.yml@v1
with:
php: "8.2"
php: "8.4"
make: "setup phpstan"
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ on:
- cron: "0 8 * * 1"

jobs:
test82:
test84:
name: "Nette Tester"
uses: contributte/.github/.github/workflows/nette-tester.yml@v1
with:
php: "8.2"
php: "8.4"
make: "setup tests"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Main goal is to try DDD with [Nette](https://nette.org).

## Installation

You will need `PHP 8.2+` and [Composer](https://getcomposer.org/).
You will need `PHP 8.4+` and [Composer](https://getcomposer.org/).

Create project using composer.

Expand Down
13 changes: 7 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,25 @@
"license": "MIT",
"type": "project",
"require": {
"php": ">=8.2",
"php": ">=8.4",
"contributte/nella": "^0.2",

"contributte/messenger": "^0.2.0",
"contributte/console": "^0.10.0",
"contributte/security": "^0.5.0",
"contributte/event-dispatcher": "^0.9.0",

"nettrine/dbal": "^0.9.0",
"nettrine/orm": "^0.9.0",
"nettrine/dbal": "^0.10.0",
"nettrine/orm": "^0.10.0",
"nettrine/cache": "^0.5.0",
"nettrine/migrations": "^0.10.0",
"nettrine/annotations": "^0.9.0",
"nettrine/fixtures": "^0.8.0",
"nettrine/extra": "^0.1.0",
"nettrine/fixtures": "^0.9.0",
"nettrine/extra": "^0.2.0",

"symfony/redis-messenger": "^7.0.2",
"symfony/doctrine-messenger": "^7.0.0"
"symfony/doctrine-messenger": "^7.0.0",
"symfony/var-exporter": "^7.0"
},
"require-dev": {
"contributte/qa": "^0.4",
Expand Down
42 changes: 20 additions & 22 deletions config/config.neon
Original file line number Diff line number Diff line change
Expand Up @@ -35,43 +35,41 @@ extensions:

# Nettrine DBAL
nettrine.dbal: Nettrine\DBAL\DI\DbalExtension
nettrine.dbal.console: Nettrine\DBAL\DI\DbalConsoleExtension(%consoleMode%)

# Nettrine ORM
nettrine.orm: Nettrine\ORM\DI\OrmExtension
nettrine.orm.cache: Nettrine\ORM\DI\OrmCacheExtension
nettrine.orm.console: Nettrine\ORM\DI\OrmConsoleExtension(%consoleMode%)
nettrine.orm.attributes: Nettrine\ORM\DI\OrmAttributesExtension

# ======================================
# Extensions (config) ==================
nettrine.dbal:
debug:
panel: %debugMode%
configuration:
connection:
driver: %database.driver%
host: %database.host%
user: %database.user%
password: %database.password%
dbname: %database.dbname%
port: %database.port%
serverVersion: 15
connections:
default:
driver: %database.driver%
host: %database.host%
user: %database.user%
password: %database.password%
dbname: %database.dbname%
port: %database.port%
serverVersion: "15"

nettrine.orm:
entityManagerDecoratorClass: Nettrine\Extra\EntityManager
configuration:
autoGenerateProxyClasses: %debugMode%

nettrine.orm.attributes:
mapping:
App\Domain: %appDir%/Domain
managers:
default:
connection: default
entityManagerDecoratorClass: Nettrine\Extra\EntityManager
autoGenerateProxyClasses: %debugMode%
mapping:
App\Domain:
directories: [%appDir%/Domain]
namespace: App\Domain

nettrine.migrations:
table: doctrine_migrations
column: version
directory: %appDir%/../db/Migrations
namespace: Database\Migrations
directories:
Database\Migrations: %appDir%/../db/Migrations
versionsOrganization: null

contributte.messenger:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.6'

services:
app:
image: dockette/web:php-82
image: dockette/web:php-84
volumes:
- .:/srv
ports:
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ includes:

parameters:
level: 9
phpVersion: 80100
phpVersion: 80400

tmpDir: %currentWorkingDirectory%/var/tmp/phpstan

Expand Down
2 changes: 1 addition & 1 deletion ruleset.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Contributte" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<!-- Rulesets -->
<rule ref="./vendor/contributte/qa/ruleset-8.0.xml"/>
<rule ref="./vendor/contributte/qa/ruleset-8.4.xml"/>

<!-- Rules -->
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
Expand Down