From 413a941b695386718cb8c030d9e95d87df3e3a1e Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Tue, 20 Jul 2021 13:30:45 +0200
Subject: [PATCH] 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
---
 .env                             |  5 ---
 README.md                        |  2 -
 composer.json                    |  5 ---
 composer.lock                    | 69 +-------------------------------
 config/bundles.php               |  1 -
 config/packages/dbp_starter.yaml |  2 -
 symfony.lock                     |  3 --
 7 files changed, 1 insertion(+), 86 deletions(-)
 delete mode 100644 config/packages/dbp_starter.yaml

diff --git a/.env b/.env
index 69d0378..78e5fc7 100644
--- a/.env
+++ b/.env
@@ -35,8 +35,3 @@ APP_BUILDINFO_URL='#'
 
 # Defines the deployment environment
 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
diff --git a/README.md b/README.md
index 36387ef..c208772 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,6 @@ It consists of a minimally configures Symfony application and development enviro
 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-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
 * Linter/Unittest integration
 
diff --git a/composer.json b/composer.json
index 17121c4..4fb5bf4 100644
--- a/composer.json
+++ b/composer.json
@@ -5,7 +5,6 @@
     "require": {
         "php": "^7.3",
         "dbp/api-core-bundle": "^0.1.5",
-        "dbp/api-starter-bundle": "^0.1.0",
         "symfony/apache-pack": "^1.0",
         "symfony/console": "^5.2",
         "symfony/dotenv": "^5.2",
@@ -18,10 +17,6 @@
         {
             "type": "vcs",
             "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": {
diff --git a/composer.lock b/composer.lock
index e616319..756f408 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "476cd1928ae3abc56e6d385dad2a6879",
+    "content-hash": "7e19a0f4466a3af0a7c0370facd1f864",
     "packages": [
         {
             "name": "api-platform/core",
@@ -304,73 +304,6 @@
             ],
             "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",
             "version": "1.13.1",
diff --git a/config/bundles.php b/config/bundles.php
index f01db70..c516b84 100644
--- a/config/bundles.php
+++ b/config/bundles.php
@@ -12,6 +12,5 @@ return [
     Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
     Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true],
     Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
-    DBP\API\StarterBundle\DbpStarterBundle::class => ['all' => true],
     DBP\API\CoreBundle\DbpCoreBundle::class => ['all' => true],
 ];
diff --git a/config/packages/dbp_starter.yaml b/config/packages/dbp_starter.yaml
deleted file mode 100644
index 21ed834..0000000
--- a/config/packages/dbp_starter.yaml
+++ /dev/null
@@ -1,2 +0,0 @@
-dbp_starter:
-  secret_token: '%env(STARTER_SECRET_TOKEN)%'
\ No newline at end of file
diff --git a/symfony.lock b/symfony.lock
index 04c03fd..5a54ed5 100644
--- a/symfony.lock
+++ b/symfony.lock
@@ -37,9 +37,6 @@
     "dbp/api-core-bundle": {
         "version": "dev-main"
     },
-    "dbp/api-starter-bundle": {
-        "version": "dev-main"
-    },
     "dnoegel/php-xdg-base-dir": {
         "version": "v0.1.1"
     },
-- 
GitLab