Skip to content

Commit

Permalink
Merge pull request #70 from n0099/symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
n0099 authored Oct 9, 2024
2 parents ef9938e + 722c039 commit 81f6c7b
Show file tree
Hide file tree
Showing 171 changed files with 6,209 additions and 7,558 deletions.
3 changes: 2 additions & 1 deletion .github/actions/be/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ runs:
opcache.enable_cli=1, opcache.memory_consumption=256,
opcache.jit=tracing, opcache.jit_buffer_size=64M
# https://github.com/shivammathur/setup-php/wiki/Php-extensions-loaded-on-windows-2022/aee619eb6d77e86b17a76d458316b41e58a3b677
extensions: fileinfo # league/[email protected] requires ext-fileinfo but it's not enabled by default on windows
# league/[email protected] requires ext-fileinfo but it's not enabled by default on windows
extensions: ${{ runner.os == 'Windows' && 'intl, fileinfo' || '' }}
env:
update: 'true' # https://github.com/shivammathur/setup-php/blob/2.31.1/README.md#force-update-setup
# https://github.com/shivammathur/setup-php/blob/2.31.1/README.md#problem-matchers
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/be_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/be
- run: >
./vendor/bin/phpstan analyse --error-format=checkstyle
./vendor/bin/phpstan analyze --error-format=checkstyle
| tee >(cs2pr --notices-as-warnings --graceful-warnings --prepend-filename --prepend-source)
shell: bash
Expand Down
18 changes: 0 additions & 18 deletions be/.editorconfig

This file was deleted.

33 changes: 33 additions & 0 deletions be/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# In all environments, the following files are loaded if they exist,
# the latter taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
# https://symfony.com/doc/current/configuration/secrets.html
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration

APP_BASE_URL_ASSETS=
APP_BASE_URL_FE=

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ###
25 changes: 0 additions & 25 deletions be/.env.example

This file was deleted.

6 changes: 6 additions & 0 deletions be/.env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
SYMFONY_DEPRECATIONS_HELPER=999999
PANTHER_APP_ENV=panther
PANTHER_ERROR_SCREENSHOT_DIR=./var/error-screenshots
11 changes: 0 additions & 11 deletions be/.gitattributes

This file was deleted.

54 changes: 32 additions & 22 deletions be/.gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,34 @@
.phpstorm.meta.php
_ide_helper*.php

# https://github.com/laravel/laravel/blob/master/.gitignore
/.phpunit.cache
/node_modules
/public/build
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.env.production
.phpactor.json
###> symfony/framework-bundle ###
/.env.local
/.env.local.php
/.env.*.local
/config/secrets/prod/prod.decrypt.private.php
/public/bundles/
/var/
/vendor/
###< symfony/framework-bundle ###

###> symfony/phpunit-bridge ###
.phpunit.result.cache
/phpunit.xml
###< symfony/phpunit-bridge ###

###> phpunit/phpunit ###
/phpunit.xml
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
###< phpunit/phpunit ###

###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###

###> friendsofphp/php-cs-fixer ###
/.php-cs-fixer.php
/.php-cs-fixer.cache
###< friendsofphp/php-cs-fixer ###

###> squizlabs/php_codesniffer ###
/.phpcs-cache
/phpcs.xml
###< squizlabs/php_codesniffer ###
File renamed without changes.
5 changes: 2 additions & 3 deletions be/.phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
<!-- https://github.com/squizlabs/PHP_CodeSniffer/issues/3291 -->
<exclude name="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"/>
<exclude name="Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore"/>
<exclude name="PSR12.ControlStructures.ControlStructureSpacing" />
</rule>
<arg name="extensions" value="php" />
<exclude-pattern>*.blade.php</exclude-pattern>
<exclude-pattern>_ide_helper*.php</exclude-pattern>
<!-- https://github.com/squizlabs/PHP_CodeSniffer/issues/2242 -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>bootstrap/cache/*</exclude-pattern>
<exclude-pattern>var/*</exclude-pattern>
</ruleset>
53 changes: 0 additions & 53 deletions be/app/Console/Commands/BatchTableSQLGenerator.php

This file was deleted.

74 changes: 0 additions & 74 deletions be/app/Console/Commands/GenerateBilibiliVote.php

This file was deleted.

27 changes: 0 additions & 27 deletions be/app/Console/Kernel.php

This file was deleted.

10 changes: 0 additions & 10 deletions be/app/Eloquent/Model/BilibiliVote.php

This file was deleted.

41 changes: 0 additions & 41 deletions be/app/Eloquent/Model/Forum.php

This file was deleted.

Loading

0 comments on commit 81f6c7b

Please sign in to comment.