Skip to content

Commit

Permalink
rename the package to qossmic/rich-model-forms-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Feb 1, 2021
1 parent 4bd4841 commit 2649697
Show file tree
Hide file tree
Showing 48 changed files with 10 additions and 1,365 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,44 +142,3 @@ jobs:
run: |
vendor/bin/simple-phpunit --testsuite="unit tests"
vendor/bin/simple-phpunit --testsuite="integration tests"
legacy-api-tests:
name: 'Deprecated legacy API'

runs-on: 'ubuntu-latest'

strategy:
matrix:
php-version: ['7.4']

steps:
- name: 'Check out'
uses: 'actions/checkout@v2'

- name: 'Set up PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '${{ matrix.php-version }}'
coverage: 'none'

- name: 'Get Composer cache directory'
id: 'composer-cache'
run: 'echo "::set-output name=cache-dir::$(composer config cache-files-dir)"'

- name: 'Cache dependencies'
uses: 'actions/cache@v2'
with:
path: '${{ steps.composer-cache.outputs.cache-dir }}'
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
restore-keys: 'php-${{ matrix.php-version }}-composer-locked-'

- name: 'Install dependencies'
run: |
composer update --no-progress --prefer-stable
- name: 'Install PHPUnit'
run: 'vendor/bin/simple-phpunit install'

- name: 'Run tests'
run: |
vendor/bin/simple-phpunit --testsuite="legacy API"
86 changes: 3 additions & 83 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,89 +1,9 @@
CHANGELOG
=========

0.8.0
-----

* The package is marked as abandoned and will no longer be maintained. Fix all deprecations and
depend on the `qossmic/rich-model-forms-bundle` package instead.
* Deprecated the `SensioLabs` namespace, use the equivalent classes from the `Qossmic` namespace
instead.
* Deprecated all services whose id starts with `sensiolabs.`, use their equivalent ids starting
with `qossmic.` instead.
* Deprecated the `sensiolabs.rich_model_forms.exception_handler` tag, use the `qossmic.rich_model_forms.exception_handler`
tag instead.

0.7.1
-----

* Fixed compatibility with `symfony/form` 5.3.

0.7.0
-----

* Allow the bundle to be used on PHP 8.
* [BC BREAK] When closures (anonymous functions) are used for the `factory` option, the submitted
form data is no longer passed as an array, but each child form is passed as a single argument
instead (use the `factory_argument` option of the child forms if form names and argument names
of the closure differ).

0.6.0
-----

* Added a `factory_argument` allowing to use field names differing from the name of the actual
factory argument (#82).
* Fixed using the `read_property_path` option with value objects (#89).
* Both the `read_property_path` and `write_property_path` options can now be used without
configuring the other one (#88).
* Added handling for `TypeError` instances thrown for typed properties on PHP 7.4+ (#85).

0.5.1
-----

* Fixed dealing with non-mapped fields when mapping to value objects (#81).

0.5.0
-----

* Fixed compatibility with `symfony/translation` 5.0.
* Dropped support for Symfony components < 4.4.

0.4.0
-----

* Allow to use the bundle with Symfony 5 components.

0.3.0
-----

* Added support for mapping several form fields to a single method of the underlying model.
* Exceptions thrown during instantiating value objects are now caught and mapped back to the form as transformation
failures.
* [BC BREAK] The `ValueObjectTransformer` requires an `ExceptionHandlerRegistry` instance.
* [BC BREAK] The first argument's type of the `ExceptionHandlerInterface::getError()` method has been changed from
`FormInterface` to `FormConfigInterface`.
* [BC BREAK] The return type of `ExceptionHandlerInterface::getError()` has been changed to `SensioLabs\RichModelForms\ExceptionHandling\Error`.
* [BC BREAK] A `TranslatorInterface` and the translation domain to be used must now be passed to the `FormExceptionHandler`
instead of passing to the individual `ExceptionHandlerInterface` implementations.

0.2.1
-----

* Fix to actually use a configured factory when submitting non-compound forms.
* Fixed passing submitted data to the configured factory for compound forms.
* Abstain from trying to map buttons to the data when creating value objects.
* Raise an error when the `data_class` option is used while the `immutable` option is enabled.

0.2.0
-----

* [BC BREAK] renamed `SensioLabs\RichModelForms\ExceptionHandling\ExceptionHandler` to
`SensioLabs\RichModelForms\ExceptionHandling\ExceptionHandlerInterface`
* Added a `PropertyMapperInterface` whose implementations can be passed to forms using the new
`property_mapper` option to map data to forms and vice versa programmatically.
* The `expected_exception` option is deprecated and will be removed in 0.3. Use `handle_exception` instead.

0.1.0
-----

Initial release of the bundle.
Initial release of the bundle under its new `qossmic/rich-model-forms-bundle` package name. This release is
feature-equivalent to the `0.8.0` release of the `sensiolabs-de/rich-model-forms-bundle` package apart from
all deprecated services and PHP classes being removed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Installation
Use Composer to install the bundle:

```bash
$ composer require sensiolabs-de/rich-model-forms-bundle
$ composer require qossmic/rich-model-forms-bundle
```

When using Symfony Flex, the bundle will be enabled automatically. Otherwise, you need to make sure that the bundle is
Expand Down
11 changes: 6 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
{
"name": "sensiolabs-de/rich-model-forms-bundle",
"name": "qossmic/rich-model-forms-bundle",
"description": "Provides additional data mapper options that ease the use of the Symfony Form component with rich models.",
"keywords": ["Symfony", "form", "forms", "bundle", "rich model", "DDD", "domain-driven design"],
"type": "symfony-bundle",
"license": "MIT",
"abandoned": "qossmic/rich-model-forms-bundle",
"authors": [
{
"name": "Christian Flothmann",
Expand Down Expand Up @@ -33,14 +32,16 @@
"symfony/phpunit-bridge": "^4.4||^5.0",
"symfony/translation": "^4.4||^5.0"
},
"conflict": {
"sensiolabs-de/rich-model-forms-bundle": "0.8.*"
},
"minimum-stability": "dev",
"config": {
"sort-packages": true
},
"autoload": {
"psr-4": {
"Qossmic\\RichModelForms\\": "src/Qossmic",
"SensioLabs\\RichModelForms\\": "src/Legacy"
"Qossmic\\RichModelForms\\": "src/Qossmic"
}
},
"autoload-dev": {
Expand All @@ -50,7 +51,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "0.8-dev"
"dev-main": "0.1-dev"
}
}
}
97 changes: 0 additions & 97 deletions phpstan-baseline.neon

This file was deleted.

2 changes: 0 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
includes:
- phar://vendor/phpstan/phpstan/phpstan.phar/conf/config.levelmax.neon
- phpstan-baseline.neon

parameters:
checkMissingIterableValueType: false
inferPrivatePropertyTypeFromConstructor: true
paths:
- src
reportUnmatchedIgnoredErrors: false
25 changes: 0 additions & 25 deletions src/Legacy/DataMapper/DataMapper.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Legacy/DataMapper/PropertyMapperInterface.php

This file was deleted.

25 changes: 0 additions & 25 deletions src/Legacy/DataTransformer/ValueObjectTransformer.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2649697

Please sign in to comment.