diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5de51760a840a224bf67b3b63afd053b7f0120e7..53ac539c10642188eeb16353cc8775a952552b0e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: registry.gitlab.tugraz.at/dbp/middleware/dbp-api/api-server-template/main:v1 +image: registry.gitlab.tugraz.at/dbp/dbp-api/api-server-template/main:v1 before_script: - 'git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.tugraz.at/".insteadOf "git@gitlab.tugraz.at:"' diff --git a/.gitlab-ci/README.md b/.gitlab-ci/README.md index 3465c9bb78526c77cea65b99e4810dd79326ed60..fa39e34edf20f83da0a7c2abcf5e52d6f98bbcab 100644 --- a/.gitlab-ci/README.md +++ b/.gitlab-ci/README.md @@ -1,4 +1,4 @@ * In case of an incompatible change increase the tag version number in build.sh * ./build.sh * (first time) sudo docker login registry.gitlab.tugraz.at -* sudo docker push registry.gitlab.tugraz.at/dbp/middleware/dbp-api/api-server-template/main:v1 \ No newline at end of file +* sudo docker push registry.gitlab.tugraz.at/dbp/dbp-api/api-server-template/main:v1 \ No newline at end of file diff --git a/.gitlab-ci/build.sh b/.gitlab-ci/build.sh index 52192df67bfa83769089c36cbb68aaee4f523ab8..e1cf566047080b3fec417fd3b16ffdbaee23cb97 100755 --- a/.gitlab-ci/build.sh +++ b/.gitlab-ci/build.sh @@ -1,7 +1,7 @@ #!/bin/bash set -e -TAG="registry.gitlab.tugraz.at/dbp/middleware/dbp-api/api-server-template/main:v1" +TAG="registry.gitlab.tugraz.at/dbp/dbp-api/api-server-template/main:v1" sudo docker build --tag "${TAG}" --file "Dockerfile" . sudo docker run --rm --security-opt label=disable \ --volume "$(pwd)/..:/home/user/app" --workdir "/home/user/app" \ diff --git a/README.md b/README.md index f28915ffd91180cbfe62f87c2761f86de664059b..36387ef0f903b1489d5eff7c299487afd9f8ca93 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ This repository can be used as a template/starting point for your own API instan It consists of a minimally configures Symfony application and development environment and includes/integrates: -* The [dbp/api-core-bundle](https://gitlab.tugraz.at/dbp/middleware/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/middleware/dbp-api/api-starter-bundle): Which acts as a template for creating new bundles as +* 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 67f0844ce1c4b3f7d8a81b7442ac8889f5317a85..127e801828906ccdae096120d97b42e0bde6d754 100644 --- a/composer.json +++ b/composer.json @@ -16,11 +16,11 @@ "repositories": [ { "type": "vcs", - "url": "https://gitlab.tugraz.at/dbp/middleware/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/middleware/dbp-api/api-starter-bundle.git" + "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle.git" } ], "config": { diff --git a/composer.lock b/composer.lock index ebb077b00f14e0c9635c7b824ed824ee1f091cd5..2ee25de64cc0f91601d7be330b882f75617f8b49 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": "0eaab40bd6e1990a5a489e0f5e78de42", + "content-hash": "b645c9d169be4edf2c25919e106535bc", "packages": [ { "name": "api-platform/core", @@ -225,7 +225,7 @@ "version": "dev-main", "source": { "type": "git", - "url": "https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-core-bundle.git", + "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-core-bundle.git", "reference": "7ee0cb4d5e73b2926070d6c8d7e4213367b86e8c" }, "require": { @@ -252,7 +252,7 @@ "web-token/jwt-signature-algorithm-rsa": "^2.1" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.17", + "friendsofphp/php-cs-fixer": "^3.0", "phpstan/phpstan": "^0.12.33", "phpstan/phpstan-phpunit": "^0.12.13", "symfony/browser-kit": "^5.2", @@ -293,7 +293,7 @@ "@php vendor/bin/php-cs-fixer --ansi fix" ], "cs": [ - "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff --diff-format=udiff" + "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff" ], "coverage": [ "@php vendor/bin/simple-phpunit --coverage-html _coverage" @@ -309,7 +309,7 @@ "version": "dev-main", "source": { "type": "git", - "url": "https://gitlab.tugraz.at/dbp/middleware/dbp-api/api-starter-bundle.git", + "url": "https://gitlab.tugraz.at/dbp/dbp-api/api-starter-bundle.git", "reference": "12182ca139a35339813b15448d7800e87288e870" }, "require": { @@ -320,7 +320,7 @@ "symfony/framework-bundle": "^5.2" }, "require-dev": { - "friendsofphp/php-cs-fixer": "^2.16", + "friendsofphp/php-cs-fixer": "^3.0", "phpstan/phpstan": "^0.12.33", "phpstan/phpstan-phpunit": "^0.12.13", "symfony/browser-kit": "^5.2", @@ -361,7 +361,7 @@ "@php vendor/bin/php-cs-fixer --ansi fix" ], "cs": [ - "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff --diff-format=udiff" + "@php vendor/bin/php-cs-fixer --ansi fix --dry-run --diff" ], "coverage": [ "@php vendor/bin/simple-phpunit --coverage-html _coverage"