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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
[![Total Downloads](https://poser.pugx.org/darkwebdesign/symfony-addon-pack/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-pack)
[![License](https://poser.pugx.org/darkwebdesign/symfony-addon-pack/license?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-pack)

[![Build Status](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml/badge.svg?branch=7.1)](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-pack/branch/7.1/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-pack)
[![Build Status](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml/badge.svg?branch=7.2)](https://github.com/darkwebdesign/symfony-addon-pack/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-pack/branch/7.2/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-pack)
[![PHP Version](https://img.shields.io/badge/php-8.2%2B-777BB3.svg)](https://php.net/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.1-93C74B.svg)](https://symfony.com/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.2-93C74B.svg)](https://symfony.com/)

Symfony Add-on Pack is a collection of extra Symfony components that you can use in your Symfony applications.

Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.1).
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.2).

## Features

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"require": {
"ext-json": "*",
"php": "^8.2",
"symfony/event-dispatcher": "7.1.*",
"symfony/form": "7.1.*",
"symfony/options-resolver": "7.1.*",
"symfony/validator": "7.1.*"
"symfony/event-dispatcher": "7.2.*",
"symfony/form": "7.2.*",
"symfony/options-resolver": "7.2.*",
"symfony/validator": "7.2.*"
},
"require-dev": {
"doctrine/orm": "^2.7",
Expand Down
8 changes: 4 additions & 4 deletions symfony-addon-constraints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
[![Total Downloads](https://poser.pugx.org/darkwebdesign/symfony-addon-constraints/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)
[![License](https://poser.pugx.org/darkwebdesign/symfony-addon-constraints/license?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-constraints)

[![Build Status](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml/badge.svg?branch=7.1)](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints/branch/7.1/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints)
[![Build Status](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml/badge.svg?branch=7.2)](https://github.com/darkwebdesign/symfony-addon-constraints/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints/branch/7.2/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-constraints)
[![PHP Version](https://img.shields.io/badge/php-8.2%2B-777BB3.svg)](https://php.net/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.1-93C74B.svg)](https://symfony.com/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.2-93C74B.svg)](https://symfony.com/)

Symfony Add-on Constraints is a collection of extra Symfony validation constraints that you can use in your Symfony
applications.

Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.1).
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.2).

## Features

Expand Down
2 changes: 1 addition & 1 deletion symfony-addon-constraints/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"require": {
"ext-json": "*",
"php": "^8.2",
"symfony/validator": "7.1.*"
"symfony/validator": "7.2.*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.58",
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/src/Bsn.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/src/BsnValidator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/src/Collection.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/src/CollectionValidator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/src/Json.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/src/JsonValidator.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/tests/BsnValidatorTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/tests/CollectionTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-constraints/tests/JsonValidatorTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
3 changes: 2 additions & 1 deletion symfony-addon-constraints/tests/Models/ToStringObject.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand All @@ -25,7 +26,7 @@
class ToStringObject implements \Stringable
{
public function __construct(
private readonly string $value
private readonly string $value,
) {
}

Expand Down
3 changes: 2 additions & 1 deletion symfony-addon-constraints/tests/Models/TraversableObject.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down Expand Up @@ -34,7 +35,7 @@ class TraversableObject implements \IteratorAggregate
* @param array<TKey, TValue> $container
*/
public function __construct(
private readonly array $container = []
private readonly array $container = [],
) {
}

Expand Down
8 changes: 4 additions & 4 deletions symfony-addon-form-types/.github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
php-version: '8.2'
- name: 'Install dependencies'
run: |
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.1.x-dev
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.2.x-dev
composer install --no-progress --prefer-dist --optimize-autoloader
- name: 'Rector'
run: 'vendor/bin/rector process --dry-run --no-progress-bar --ansi'
Expand All @@ -37,7 +37,7 @@ jobs:
php-version: '8.2'
- name: 'Install dependencies'
run: |
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.1.x-dev
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.2.x-dev
composer install --no-progress --prefer-dist --optimize-autoloader
- name: 'PHPStan'
run: 'vendor/bin/phpstan analyze --no-progress --ansi'
Expand All @@ -54,7 +54,7 @@ jobs:
php-version: '8.2'
- name: 'Install dependencies'
run: |
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.1.x-dev
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.2.x-dev
composer install --no-progress --prefer-dist --optimize-autoloader
- name: 'PHP CS Fixer'
run: 'vendor/bin/php-cs-fixer fix --diff --dry-run --show-progress=none --ansi'
Expand All @@ -75,7 +75,7 @@ jobs:
php-version: "${{ matrix.php }}"
- name: 'Install dependencies'
run: |
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.1.x-dev
composer require --dev --no-install darkwebdesign/symfony-addon-transformers:7.2.x-dev
composer install --no-progress --prefer-dist --optimize-autoloader
- name: 'PHPUnit'
run: 'XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover phpunit-coverage.xml'
Expand Down
8 changes: 4 additions & 4 deletions symfony-addon-form-types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
[![Total Downloads](https://poser.pugx.org/darkwebdesign/symfony-addon-form-types/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-form-types)
[![License](https://poser.pugx.org/darkwebdesign/symfony-addon-form-types/license?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-form-types)

[![Build Status](https://github.com/darkwebdesign/symfony-addon-form-types/actions/workflows/build.yaml/badge.svg?branch=7.1)](https://github.com/darkwebdesign/symfony-addon-form-types/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-form-types/branch/7.1/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-form-types)
[![Build Status](https://github.com/darkwebdesign/symfony-addon-form-types/actions/workflows/build.yaml/badge.svg?branch=7.2)](https://github.com/darkwebdesign/symfony-addon-form-types/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-form-types/branch/7.2/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-form-types)
[![PHP Version](https://img.shields.io/badge/php-8.2%2B-777BB3.svg)](https://php.net/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.1-93C74B.svg)](https://symfony.com/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.2-93C74B.svg)](https://symfony.com/)

Symfony Add-on Form Types is a collection of extra Symfony form field types that you can use in your Symfony applications.

Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.1).
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.2).

## Features

Expand Down
8 changes: 4 additions & 4 deletions symfony-addon-form-types/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
],
"require": {
"php": "^8.2",
"symfony/event-dispatcher": "7.1.*",
"symfony/form": "7.1.*",
"symfony/options-resolver": "7.1.*"
"symfony/event-dispatcher": "7.2.*",
"symfony/form": "7.2.*",
"symfony/options-resolver": "7.2.*"
},
"require-dev": {
"darkwebdesign/symfony-addon-transformers": "7.1.*",
"darkwebdesign/symfony-addon-transformers": "7.2.*",
"doctrine/orm": "^2.7",
"friendsofphp/php-cs-fixer": "^3.58",
"phpstan/extension-installer": "^1.3",
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/src/BirthdayType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
3 changes: 2 additions & 1 deletion symfony-addon-form-types/src/BooleanToYesNoSubscriber.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2021 DarkWeb Design.
*
Expand Down Expand Up @@ -35,7 +36,7 @@ class BooleanToYesNoSubscriber implements EventSubscriberInterface
{
public function __construct(
/** @var string[] */
private readonly array $fieldNames
private readonly array $fieldNames,
) {
}

Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/src/BooleanType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
3 changes: 2 additions & 1 deletion symfony-addon-form-types/src/EntityType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down Expand Up @@ -45,7 +46,7 @@
class EntityType extends AbstractType
{
public function __construct(
private ManagerRegistry $registry
private readonly ManagerRegistry $registry,
) {
}

Expand Down
3 changes: 2 additions & 1 deletion symfony-addon-form-types/src/JsonSchemaSubscriber.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2021 DarkWeb Design.
*
Expand Down Expand Up @@ -34,7 +35,7 @@
class JsonSchemaSubscriber implements EventSubscriberInterface
{
public function __construct(
private readonly string $fieldName = 'schema'
private readonly string $fieldName = 'schema',
) {
}

Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/src/UnstructuredType.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2019 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/tests/BirthdayTypeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2021 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/tests/BooleanTypeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/tests/EntityTypeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2021 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/tests/Models/City.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2018 DarkWeb Design.
*
Expand Down
1 change: 1 addition & 0 deletions symfony-addon-form-types/tests/UnstructuredTypeTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2019 DarkWeb Design.
*
Expand Down
8 changes: 4 additions & 4 deletions symfony-addon-transformers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
[![Total Downloads](https://poser.pugx.org/darkwebdesign/symfony-addon-transformers/downloads?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-transformers)
[![License](https://poser.pugx.org/darkwebdesign/symfony-addon-transformers/license?format=flat)](https://packagist.org/packages/darkwebdesign/symfony-addon-transformers)

[![Build Status](https://github.com/darkwebdesign/symfony-addon-transformers/actions/workflows/build.yaml/badge.svg?branch=7.1)](https://github.com/darkwebdesign/symfony-addon-transformers/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-transformers/branch/7.1/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-transformers)
[![Build Status](https://github.com/darkwebdesign/symfony-addon-transformers/actions/workflows/build.yaml/badge.svg?branch=7.2)](https://github.com/darkwebdesign/symfony-addon-transformers/actions/workflows/build.yaml)
[![Coverage Status](https://codecov.io/gh/darkwebdesign/symfony-addon-transformers/branch/7.2/graph/badge.svg)](https://codecov.io/gh/darkwebdesign/symfony-addon-transformers)
[![PHP Version](https://img.shields.io/badge/php-8.2%2B-777BB3.svg)](https://php.net/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.1-93C74B.svg)](https://symfony.com/)
[![Symfony Version](https://img.shields.io/badge/symfony-7.2-93C74B.svg)](https://symfony.com/)

Symfony Add-on Transformers is a collection of extra Symfony data transformers that you can use in your Symfony
applications.

Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.1).
Learn more about it in its [documentation](https://darkwebdesign.github.io/symfony-addon-pack/docs/7.2).

## Features

Expand Down
2 changes: 1 addition & 1 deletion symfony-addon-transformers/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
],
"require": {
"php": "^8.2",
"symfony/form": "7.1.*"
"symfony/form": "7.2.*"
},
"require-dev": {
"doctrine/orm": "^2.7",
Expand Down
3 changes: 2 additions & 1 deletion symfony-addon-transformers/src/BooleanToValueTransformer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down Expand Up @@ -40,7 +41,7 @@ public function __construct(
/** @var R */
private readonly string|int|float|bool $trueValue = true,
/** @var R */
private readonly string|int|float|bool $falseValue = false
private readonly string|int|float|bool $falseValue = false,
) {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down Expand Up @@ -58,7 +59,7 @@ class EntityToIdentifierTransformer implements DataTransformerInterface
*/
public function __construct(
private readonly ObjectManager $entityManager,
string $className
string $className,
) {
$this->repository = $this->entityManager->getRepository($className);
$this->metadata = $this->entityManager->getClassMetadata($className);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* Copyright (c) 2017 DarkWeb Design.
*
Expand Down
Loading