Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Symfony 4 compatability #3

Open
wants to merge 3 commits into
base: symfony3
Choose a base branch
from
Open
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
19 changes: 3 additions & 16 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ parameters:
hateoas.metadata_cache.class: GoIntegro\Bundle\HateoasBundle\Metadata\Entity\ArrayMetadataCache

services:
_defaults:
public: true

hateoas.request_parser:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\Parser
arguments:
Expand All @@ -20,27 +23,23 @@ services:

hateoas.request_parser.filter:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\FilterParser
public: false
arguments:
- "@hateoas.metadata_miner"
- "%go_integro_hateoas.json_api%"

hateoas.request_parser.sorting:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\SortingParser
public: false
arguments:
- "@hateoas.metadata_miner"

hateoas.request_parser.pagination:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\PaginationParser
public: false
arguments:
- "@hateoas.metadata_miner"
- "%go_integro_hateoas.json_api%"

hateoas.request_parser.body:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\BodyParser
public: false
arguments:
- "@hateoas.json_coder"
- "@hateoas.raml.finder"
Expand All @@ -51,40 +50,34 @@ services:

hateoas.request_parser.body.create:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\CreateBodyParser
public: false
arguments:
- "@hateoas.json_coder"

hateoas.request_parser.body.update:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\UpdateBodyParser
public: false
arguments:
- "@hateoas.json_coder"

hateoas.request_parser.body.relate:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\RelateBodyParser
public: false
arguments:
- "@hateoas.json_coder"

hateoas.request_parser.action:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\ActionParser
public: false
arguments:
- "@hateoas.json_coder"
- "@hateoas.metadata_miner"

hateoas.request_parser.entities:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\ParamEntityFinder
public: false
arguments:
- "@doctrine.orm.entity_manager"
- "@security.authorization_checker"
- "@hateoas.json_coder"

hateoas.request_parser.hydrant:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\ResourceLinksHydrant
public: false
arguments:
- "@doctrine.orm.entity_manager"
- "@hateoas.metadata_miner"
Expand Down Expand Up @@ -126,7 +119,6 @@ services:

hateoas.repo_helper.default_filter:
class: GoIntegro\Bundle\HateoasBundle\JsonApi\Request\DefaultFilter
public: false
tags:
- { name: hateoas.repo_helper.filter }

Expand All @@ -140,11 +132,9 @@ services:

hateoas.entity.builder:
class: GoIntegro\Bundle\HateoasBundle\Entity\Builder
scope: request

hateoas.entity.default_builder:
class: GoIntegro\Bundle\HateoasBundle\Entity\DefaultBuilder
public: false
arguments:
- "@doctrine.orm.entity_manager"
- "@validator"
Expand All @@ -154,11 +144,9 @@ services:

hateoas.entity.mutator:
class: GoIntegro\Bundle\HateoasBundle\Entity\Mutator
scope: request

hateoas.entity.default_mutator:
class: GoIntegro\Bundle\HateoasBundle\Entity\DefaultMutator
public: false
arguments:
- "@doctrine.orm.entity_manager"
- "@validator"
Expand All @@ -170,7 +158,6 @@ services:

hateoas.entity.default_deleter:
class: GoIntegro\Bundle\HateoasBundle\Entity\DefaultDeleter
public: false
arguments:
- "@doctrine.orm.entity_manager"
- "@hateoas.request_parser"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"doctrine/orm": "*",
"justinrainbow/json-schema": "*",
"predis/predis": "*",
"ramsey/uuid": "^3.6"
"ramsey/uuid": "^3.6||^4.2"
},
"require-dev": {
"phpunit/phpunit": "*",
Expand Down