Skip to content

Demo App w/ required updates for Symfony 3.3 and a custom action #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
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
1 change: 0 additions & 1 deletion app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public function registerBundles()
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Dunglas\ActionBundle\DunglasActionBundle(),
new ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle(),
new Nelmio\CorsBundle\NelmioCorsBundle(),
new AppBundle\AppBundle(),
Expand Down
1 change: 1 addition & 0 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,4 @@ api_platform:
yaml: ['application/x-yaml']
csv: ['text/csv']
html: ['text/html']

1 change: 1 addition & 0 deletions app/config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
api:
resource: '.'
type: 'api_platform'
prefix: 'api'

app:
resource: '@AppBundle/Action/'
Expand Down
15 changes: 8 additions & 7 deletions app/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ parameters:
# parameter_name: value

services:
review.search_filter:
parent: 'api_platform.doctrine.orm.search_filter'
arguments: [ { itemReviewed: 'exact' } ]
tags: [ { name: 'api_platform.filter', id: 'review.search_filter' } ]
# service_name:
# class: AppBundle\Directory\ClassName
# arguments: ["@another_service_name", "plain_value", "%parameter_name%"]
_defaults:
autowire: true
autoconfigure: true
public: false
AppBundle\Action\:
resource: '../../src/AppBundle/Action'
public: true
tags: ['controller.service_arguments']
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
},
"require": {
"php": ">=7.0",
"symfony/symfony": "3.2.*",
"api-platform/core": "^2.0",
"symfony/symfony": "3.3.*",
"api-platform/core": "^2.1@beta",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
Expand All @@ -30,7 +30,6 @@
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"dunglas/action-bundle": "^0.3",
"nelmio/cors-bundle": "^1.4",
"phpdocumentor/reflection-docblock": "^3.0"
},
Expand Down
Loading