Skip to content

Commit

Permalink
Merge pull request #387 from loic425/feature/api-meta
Browse files Browse the repository at this point in the history
API metapackage
  • Loading branch information
loic425 committed Jan 19, 2022
2 parents 3885325 + 5a54061 commit 3b00b5a
Show file tree
Hide file tree
Showing 57 changed files with 29 additions and 18 deletions.
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@
"App\\Command\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Command/",
"App\\Dashboard\\": "src/Monofony/MetaPack/AdminMeta/.recipe/src/Dashboard/",
"App\\DataFixtures\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/DataFixtures/",
"App\\DataTransformer\\": "src/Monofony/Pack/ApiPack/.recipe/src/DataTransformer/",
"App\\DataTransformer\\": "src/Monofony/MetaPack/ApiMeta/.recipe/src/DataTransformer/",
"App\\Entity\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Entity/",
"App\\EventSubscriber\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/EventSubscriber/",
"App\\Factory\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Factory/",
"App\\Fixture\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Fixture/",
"App\\Form\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Form/",
"App\\Grid\\": "src/Monofony/MetaPack/AdminMeta/.recipe/src/Grid/",
"App\\Identifier\\": "src/Monofony/Pack/ApiPack/.recipe/src/Identifier/",
"App\\Identifier\\": "src/Monofony/MetaPack/ApiMeta/.recipe/src/Identifier/",
"App\\Installer\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Installer/",
"App\\Installer\\Checker\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Installer/Checker/",
"App\\Message\\": "src/Monofony/Pack/ApiPack/.recipe/src/Message/",
"App\\MessageHandler\\": "src/Monofony/Pack/ApiPack/.recipe/src/MessageHandler/",
"App\\Message\\": "src/Monofony/MetaPack/ApiMeta/.recipe/src/Message/",
"App\\MessageHandler\\": "src/Monofony/MetaPack/ApiMeta/.recipe/src/MessageHandler/",
"App\\Migrations\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Migrations/",
"App\\Provider\\": "src/Monofony/Pack/ApiPack/.recipe/src/Provider/",
"App\\Provider\\": "src/Monofony/MetaPack/ApiMeta/.recipe/src/Provider/",
"App\\Repository\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Repository/",
"App\\Security\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Security/",
"App\\Story\\": "src/Monofony/MetaPack/CoreMeta/.recipe/src/Story/",
Expand All @@ -52,7 +52,7 @@
"App\\Tests\\Behat\\Exception\\": "src/Monofony/MetaPack/CoreMeta/.recipe/tests/Behat/Exception/",
"App\\Tests\\Behat\\Page\\Frontend\\": "src/Monofony/Pack/FrontPack/.recipe/tests/Behat/Page/Frontend/",
"App\\Tests\\Behat\\Service\\": "src/Monofony/MetaPack/CoreMeta/.recipe/tests/Behat/Service/",
"App\\Tests\\Controller\\": "src/Monofony/Pack/ApiPack/.recipe/tests/Controller/"
"App\\Tests\\Controller\\": "src/Monofony/MetaPack/ApiMeta/.recipe/tests/Controller/"
},
"classmap": [
"src/Monofony/MetaPack/AdminMeta/.recipe/src/Controller/DashboardController.php",
Expand Down
2 changes: 1 addition & 1 deletion config/packages/api_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ api_platform:
mapping:
paths:
- '%kernel.project_dir%/src/Monofony/MetaPack/CoreMeta/.recipe/src/Entity'
- '%kernel.project_dir%/src/Monofony/Pack/ApiPack/.recipe/config/api_platform/resources'
- '%kernel.project_dir%/src/Monofony/MetaPack/ApiMeta/.recipe/config/api_platform/resources'
patch_formats:
json: ['application/merge-patch+json']
swagger:
Expand Down
2 changes: 1 addition & 1 deletion config/packages/framework.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ framework:
serializer:
enabled: true
mapping:
paths: ['%kernel.project_dir%/src/Monofony/Pack/ApiPack/.recipe/config/serialization/']
paths: ['%kernel.project_dir%/src/Monofony/MetaPack/ApiMeta/.recipe/config/serialization/']
default_locale: "%locale%"
trusted_hosts: ~
session:
Expand Down
2 changes: 1 addition & 1 deletion config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ app_frontend:
resource: "../src/Monofony/Pack/FrontPack/.recipe/config/routes/frontend.yaml"

app_api:
resource: "../src/Monofony/Pack/ApiPack/.recipe/config/routes/api.yaml"
resource: "../src/Monofony/MetaPack/ApiMeta/.recipe/config/routes/api.yaml"
4 changes: 2 additions & 2 deletions config/services/monofony_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ services:

app_fixture:
namespace: App\
resource: '../../src/Monofony/Pack/ApiPack/.recipe/src/*'
exclude: '../../src/Monofony/Pack/ApiPack/.recipe/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
resource: '../../src/Monofony/MetaPack/ApiMeta/.recipe/src/*'
exclude: '../../src/Monofony/MetaPack/ApiMeta/.recipe/src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
2 changes: 1 addition & 1 deletion ecs-recipe.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
$parameters = $containerConfigurator->parameters();
$parameters->set(Option::PATHS, [
__DIR__ . '/src/Monofony/MetaPack/AdminMeta/.recipe',
__DIR__.'/src/Monofony/Pack/ApiPack/.recipe',
__DIR__ . '/src/Monofony/MetaPack/ApiMeta/.recipe',
__DIR__ . '/src/Monofony/MetaPack/CoreMeta/.recipe',
__DIR__.'/src/Monofony/Pack/FrontPack/.recipe',
]);
Expand Down
2 changes: 1 addition & 1 deletion infection.json.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"src/Admin/recipe/src",
"src/Monofony/Pack/FrontPack/.recipe/src",
"src/Monofony/Pack/FixturesPack/.recipe/src",
"src/Monofony/Pack/ApiPack/.recipe/src"
"src/Monofony/MetaPack/ApiMeta/.recipe/src"
],
"excludes": [
"Command",
Expand Down
2 changes: 1 addition & 1 deletion phpspec.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ suites:

# Packs
AdminPack.recipe: { spec_path: src/Monofony/MetaPack/AdminMeta/.recipe, src_path: src/Monofony/MetaPack/AdminMeta/.recipe }
ApiPack.recipe: { spec_path: src/Monofony/Pack/ApiPack/.recipe, src_path: src/Monofony/Pack/ApiPack/.recipe }
ApiPack.recipe: { spec_path: src/Monofony/MetaPack/ApiMeta/.recipe, src_path: src/Monofony/MetaPack/ApiMeta/.recipe }
CorePack.recipe: { spec_path: src/Monofony/MetaPack/CoreMeta/.recipe, src_path: src/Monofony/MetaPack/CoreMeta/.recipe }
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<directory>src</directory>
</testsuite>
<testsuite name="Api Recipe Test Suite">
<directory>src/Monofony/Pack/ApiPack/.recipe/tests</directory>
<directory>src/Monofony/MetaPack/ApiMeta/.recipe/tests</directory>
</testsuite>
</testsuites>

Expand Down
2 changes: 1 addition & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
$parameters->set(Option::PATHS, [
__DIR__ . '/src/Monofony/Component/Admin',
__DIR__ . '/src/Monofony/MetaPack/AdminMeta/.recipe/src',
__DIR__ . '/src/Monofony/Pack/ApiPack/.recipe/src',
__DIR__ . '/src/Monofony/MetaPack/ApiMeta/.recipe/src',
__DIR__ . '/src/Monofony/MetaPack/CoreMeta/.recipe/src',
__DIR__ . '/src/Monofony/Pack/FrontPack/.recipe/src',
]);
Expand Down
11 changes: 11 additions & 0 deletions src/Monofony/MetaPack/ApiMeta/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "monofony/api-meta",
"type": "metapackage",
"license": "MIT",
"description": "A meta package providing recipes for API",
"extra": {
"branch-alias": {
"dev-master": "0.8-dev"
}
}
}
2 changes: 1 addition & 1 deletion src/Monofony/Pack/ApiPack/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"autoload": {
"exclude-from-classmap": [
"/.recipe/"
"/Monofony/MetaPack/ApiMeta/.recipe/"
]
},
"minimum-stability": "dev",
Expand Down
2 changes: 1 addition & 1 deletion src/Monofony/Pack/ApiPack/phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
paths:
- .recipe
- ../../MetaPack/ApiMeta/.recipe
excludePaths:
- 'vendor/**.php'
- '**/spec/**.php'

0 comments on commit 3b00b5a

Please sign in to comment.