Skip to content
Snippets Groups Projects
Commit 413a941b authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Remove the starter bundle

While the starter bundle gives a nice example for how to integrate an API
it makes setting up a new server harder because the user usually already
has a bundle in mind that he/she wants to add.

So remove it and instead make it easier to add bundles by improving the docs
parent e9aba2d5
No related branches found
No related tags found
No related merge requests found
...@@ -35,8 +35,3 @@ APP_BUILDINFO_URL='#' ...@@ -35,8 +35,3 @@ APP_BUILDINFO_URL='#'
# Defines the deployment environment # Defines the deployment environment
APP_DEPLOYMENT_ENV='local' APP_DEPLOYMENT_ENV='local'
# Secret token for the starter bundle example
# This is just a defaule.
# Create a ".env.local" file which is excluded from git to set it
STARTER_SECRET_TOKEN=
\ No newline at end of file
...@@ -5,8 +5,6 @@ It consists of a minimally configures Symfony application and development enviro ...@@ -5,8 +5,6 @@ It consists of a minimally configures Symfony application and development enviro
and includes/integrates: and includes/integrates:
* The [dbp/api-core-bundle](https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle): Which provides authentication, some same base end points and entities and configuration for [api-platform](https://api-platform.com/) * The [dbp/api-core-bundle](https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle): Which provides authentication, some same base end points and entities and configuration for [api-platform](https://api-platform.com/)
* The [dbp/api-starter-bundle](https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle): Which acts as a template for creating new bundles as
we as an example for what can be done in a bundle.
* A docker-compose based development environment * A docker-compose based development environment
* Linter/Unittest integration * Linter/Unittest integration
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
"require": { "require": {
"php": "^7.3", "php": "^7.3",
"dbp/api-core-bundle": "^0.1.5", "dbp/api-core-bundle": "^0.1.5",
"dbp/api-starter-bundle": "^0.1.0",
"symfony/apache-pack": "^1.0", "symfony/apache-pack": "^1.0",
"symfony/console": "^5.2", "symfony/console": "^5.2",
"symfony/dotenv": "^5.2", "symfony/dotenv": "^5.2",
...@@ -18,10 +17,6 @@ ...@@ -18,10 +17,6 @@
{ {
"type": "vcs", "type": "vcs",
"url": "https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle.git" "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle.git"
},
{
"type": "vcs",
"url": "https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle.git"
} }
], ],
"config": { "config": {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "476cd1928ae3abc56e6d385dad2a6879", "content-hash": "7e19a0f4466a3af0a7c0370facd1f864",
"packages": [ "packages": [
{ {
"name": "api-platform/core", "name": "api-platform/core",
...@@ -304,73 +304,6 @@ ...@@ -304,73 +304,6 @@
], ],
"time": "2021-07-12T00:17:21+00:00" "time": "2021-07-12T00:17:21+00:00"
}, },
{
"name": "dbp/api-starter-bundle",
"version": "v0.1.1",
"source": {
"type": "git",
"url": "https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle.git",
"reference": "7b6b6ceba3f536ee5533ff2702fb691ef72caf3d"
},
"require": {
"api-platform/core": "^2.5",
"dbp/api-core-bundle": "^0.1.3",
"ext-json": "*",
"php": "^7.3",
"symfony/framework-bundle": "^5.2"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12.33",
"phpstan/phpstan-phpunit": "^0.12.13",
"symfony/browser-kit": "^5.2",
"symfony/http-client": "^5.2",
"symfony/phpunit-bridge": "^5.2",
"vimeo/psalm": "^4.2.1"
},
"type": "symfony-bundle",
"autoload": {
"psr-4": {
"DBP\\API\\StarterBundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"DBP\\API\\StarterBundle\\Tests\\": "tests/"
}
},
"scripts": {
"test": [
"@php vendor/bin/simple-phpunit"
],
"phpstan": [
"@php vendor/bin/simple-phpunit --atleast-version 0",
"@php vendor/bin/phpstan analyze --ansi"
],
"psalm": [
"@php vendor/bin/simple-phpunit --atleast-version 0",
"@php vendor/bin/psalm"
],
"lint": [
"@composer run cs",
"@composer run phpstan",
"@composer run psalm"
],
"cs-fix": [
"@php vendor/bin/php-cs-fixer --ansi fix"
],
"cs": [
"@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff"
],
"coverage": [
"@php vendor/bin/simple-phpunit --coverage-html _coverage"
]
},
"license": [
"AGPL-3.0-or-later"
],
"time": "2021-07-06T13:18:24+00:00"
},
{ {
"name": "doctrine/annotations", "name": "doctrine/annotations",
"version": "1.13.1", "version": "1.13.1",
......
...@@ -12,6 +12,5 @@ return [ ...@@ -12,6 +12,5 @@ return [
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true], Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true], Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
DBP\API\StarterBundle\DbpStarterBundle::class => ['all' => true],
DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true], DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true],
]; ];
dbp_starter:
secret_token: '%env(STARTER_SECRET_TOKEN)%'
\ No newline at end of file
...@@ -37,9 +37,6 @@ ...@@ -37,9 +37,6 @@
"dbp/api-core-bundle": { "dbp/api-core-bundle": {
"version": "dev-main" "version": "dev-main"
}, },
"dbp/api-starter-bundle": {
"version": "dev-main"
},
"dnoegel/php-xdg-base-dir": { "dnoegel/php-xdg-base-dir": {
"version": "v0.1.1" "version": "v0.1.1"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment