Skip to content

Commit

Permalink
Updated API Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
supermalang committed Nov 24, 2023
1 parent cc7311b commit 49bd48d
Show file tree
Hide file tree
Showing 13 changed files with 422 additions and 43 deletions.
16 changes: 16 additions & 0 deletions assets/controllers/hello_controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Controller } from '@hotwired/stimulus';

/*
* This is an example Stimulus controller!
*
* Any element with a data-controller="hello" attribute will cause
* this controller to be executed. The name "hello" comes from the filename:
* hello_controller.js -> "hello"
*
* Delete this file or adapt it for your use!
*/
export default class extends Controller {
connect() {
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
}
}
23 changes: 0 additions & 23 deletions compose-dev.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ext-ctype": "*",
"ext-iconv": "*",
"ext-zip": "^1.15",
"api-platform/core": "^2.6",
"api-platform/core": "^2.7",
"artgris/filemanager-bundle": "^2.2",
"beberlei/doctrineextensions": "^1.3",
"composer/package-versions-deprecated": "1.11.99.4",
Expand All @@ -17,6 +17,7 @@
"easycorp/easyadmin-bundle": "^4",
"nelmio/cors-bundle": "^2.2",
"phpdocumentor/reflection-docblock": "^5.3",
"phpstan/phpdoc-parser": "^1.24",
"sensio/framework-extra-bundle": "^6.1",
"supermalang/paytech-client": "master@dev",
"symfony/asset": "6.0.*",
Expand Down
2 changes: 1 addition & 1 deletion config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
Artgris\Bundle\FileManagerBundle\ArtgrisFileManagerBundle::class => ['all' => true],
EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\UX\Chartjs\ChartjsBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Vich\UploaderBundle\VichUploaderBundle::class => ['all' => true],
Symfony\UX\StimulusBundle\StimulusBundle::class => ['all' => true],
ApiPlatform\Core\Bridge\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
];
15 changes: 15 additions & 0 deletions config/packages/web_profiler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
when@dev:
web_profiler:
toolbar: true
intercept_redirects: false

framework:
profiler: { only_exceptions: false }

when@test:
web_profiler:
toolbar: false
intercept_redirects: false

framework:
profiler: { collect: false }
5 changes: 5 additions & 0 deletions config/preload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
}
4 changes: 4 additions & 0 deletions config/routes/framework.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
when@dev:
_errors:
resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
prefix: /_error
8 changes: 8 additions & 0 deletions config/routes/web_profiler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
when@dev:
web_profiler_wdt:
resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
prefix: /_wdt

web_profiler_profiler:
resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
prefix: /_profiler
8 changes: 7 additions & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,10 @@
# image: schickling/mailcatcher
# ports: [1025, 1080]
#####< symfony/mailer ###
#
#
services:
###> doctrine/doctrine-bundle ###
database:
ports:
- "5432"
###< doctrine/doctrine-bundle ###
12 changes: 0 additions & 12 deletions docker/development/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions docker/development/entrypoint-dev.sh

This file was deleted.

2 changes: 1 addition & 1 deletion src/Controller/Admin/DeploymentsCrudController.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function startApp(AdminContext $context)
}

/** We are not managing this through the workflow manager as for this specific use case we want to avoid having an extra status in the workflow */
public function restartApp(AdminContext $context): void
public function restartApp(AdminContext $context)
{
$id = $context->getRequest()->query->get('entityId');
$deployment = $this->doctrine->getRepository($this->getEntityFqcn())->find($id);
Expand Down
Loading

0 comments on commit 49bd48d

Please sign in to comment.