forked from projects/file-explorer
Compare commits
7 Commits
main
...
feature/do
Author | SHA1 | Date | |
---|---|---|---|
f34265ab8e | |||
e436709ea3 | |||
58ab9e2154 | |||
c58d2445fa | |||
3683edd121 | |||
45f1a62a76 | |||
e0f5fe2524 |
2
.env
2
.env
@ -19,4 +19,4 @@ APP_ENV=dev
|
|||||||
APP_SECRET=bfc9c288ee3dcce80dec8622c2870f27
|
APP_SECRET=bfc9c288ee3dcce80dec8622c2870f27
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
DATA_DIR='/var/www/html/data'
|
DATA_DIR=/var/www/data
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
name: build
|
name: build
|
||||||
on:
|
on: push
|
||||||
pull_request:
|
# pull_request:
|
||||||
types:
|
# types:
|
||||||
- closed
|
# - closed
|
||||||
branches:
|
# branches:
|
||||||
- main
|
# - main
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -18,3 +18,9 @@ RUN pecl install apcu && docker-php-ext-enable apcu
|
|||||||
|
|
||||||
WORKDIR /var/www/project
|
WORKDIR /var/www/project
|
||||||
RUN composer install --optimize-autoloader --no-suggest --no-progress
|
RUN composer install --optimize-autoloader --no-suggest --no-progress
|
||||||
|
RUN composer dump-env prod
|
||||||
|
RUN php bin/console tailwind:build
|
||||||
|
RUN php bin/console asset-map:compile
|
||||||
|
RUN mkdir -p /var/www/data
|
||||||
|
RUN chown -R www-data:www-data /var/www/data
|
||||||
|
RUN chown -R www-data:www-data .
|
||||||
|
23
src/test.php
Normal file
23
src/test.php
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace App;
|
||||||
|
|
||||||
|
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
|
||||||
|
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
|
||||||
|
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
|
||||||
|
use Symfony\Component\HttpKernel\KernelEvents;
|
||||||
|
|
||||||
|
class test implements EventSubscriberInterface
|
||||||
|
{
|
||||||
|
|
||||||
|
public static function getSubscribedEvents()
|
||||||
|
{
|
||||||
|
return [KernelEvents::EXCEPTION => 'x'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function x(ExceptionEvent $event)
|
||||||
|
{
|
||||||
|
dd($event->getThrowable());
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user