From f5f7a8094a0f4250e69b7a9e556cb8f46986b39f Mon Sep 17 00:00:00 2001 From: maikschneider Date: Mon, 26 Feb 2024 07:29:45 +0000 Subject: [PATCH] build: version 4.0.3 --- .ddev/config.yaml | 260 ---------------------------- .github/workflows/notifications.yml | 9 - .github/workflows/release.yml | 21 --- .gitignore | 6 - .phpstorm.meta.php | 89 ---------- config/sites/main/config.yaml | 28 --- config/system/settings.php | 131 -------------- php-cs-fixer.php | 97 ----------- phpstan-baseline.neon | 2 - phpstan.neon | 18 -- 10 files changed, 661 deletions(-) delete mode 100644 .ddev/config.yaml delete mode 100644 .github/workflows/notifications.yml delete mode 100644 .github/workflows/release.yml delete mode 100644 .gitignore delete mode 100644 .phpstorm.meta.php delete mode 100644 config/sites/main/config.yaml delete mode 100644 config/system/settings.php delete mode 100644 php-cs-fixer.php delete mode 100644 phpstan-baseline.neon delete mode 100644 phpstan.neon diff --git a/.ddev/config.yaml b/.ddev/config.yaml deleted file mode 100644 index 9dc19bf..0000000 --- a/.ddev/config.yaml +++ /dev/null @@ -1,260 +0,0 @@ -name: bw-captcha -type: typo3 -docroot: public -php_version: "8.1" -webserver_type: nginx-fpm -router_http_port: "80" -router_https_port: "443" -xdebug_enabled: false -additional_hostnames: [] -additional_fqdns: [] -database: - type: mariadb - version: "10.4" -nfs_mount_enabled: false -mutagen_enabled: false -use_dns_when_possible: true -composer_version: "2" -web_environment: -- TYPO3_CONTEXT=Development/Local -nodejs_version: "16" - -# Key features of ddev's config.yaml: - -# name: # Name of the project, automatically provides -# http://projectname.ddev.site and https://projectname.ddev.site - -# type: # drupal6/7/8, backdrop, typo3, wordpress, php - -# docroot: # Relative path to the directory containing index.php. - -# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1" - -# You can explicitly specify the webimage but this -# is not recommended, as the images are often closely tied to ddev's' behavior, -# so this can break upgrades. - -# webimage: # nginx/php docker image. - -# database: -# type: # mysql, mariadb -# version: # database version, like "10.3" or "8.0" -# Note that mariadb_version or mysql_version from v1.18 and earlier -# will automatically be converted to this notation with just a "ddev config --auto" - -# router_http_port: # Port to be used for http (defaults to port 80) -# router_https_port: # Port for https (defaults to 443) - -# xdebug_enabled: false # Set to true to enable xdebug and "ddev start" or "ddev restart" -# Note that for most people the commands -# "ddev xdebug" to enable xdebug and "ddev xdebug off" to disable it work better, -# as leaving xdebug enabled all the time is a big performance hit. - -# xhprof_enabled: false # Set to true to enable xhprof and "ddev start" or "ddev restart" -# Note that for most people the commands -# "ddev xhprof" to enable xhprof and "ddev xhprof off" to disable it work better, -# as leaving xhprof enabled all the time is a big performance hit. - -# webserver_type: nginx-fpm # or apache-fpm - -# timezone: Europe/Berlin -# This is the timezone used in the containers and by PHP; -# it can be set to any valid timezone, -# see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones -# For example Europe/Dublin or MST7MDT - -# composer_root: -# Relative path to the composer root directory from the project root. This is -# the directory which contains the composer.json and where all Composer related -# commands are executed. - -# composer_version: "2" -# You can set it to "" or "2" (default) for Composer v2 or "1" for Composer v1 -# to use the latest major version available at the time your container is built. -# It is also possible to use each other Composer version channel. This includes: -# - 2.2 (latest Composer LTS version) -# - stable -# - preview -# - snapshot -# Alternatively, an explicit Composer version may be specified, for example "2.2.18". -# To reinstall Composer after the image was built, run "ddev debug refresh". - -# nodejs_version: "16" -# change from the default system Node.js version to another supported version, like 12, 14, 17, 18. -# Note that you can use 'ddev nvm' or nvm inside the web container to provide nearly any -# Node.js version, including v6, etc. - -# additional_hostnames: -# - somename -# - someothername -# would provide http and https URLs for "somename.ddev.site" -# and "someothername.ddev.site". - -# additional_fqdns: -# - example.com -# - sub1.example.com -# would provide http and https URLs for "example.com" and "sub1.example.com" -# Please take care with this because it can cause great confusion. - -# upload_dir: custom/upload/dir -# would set the destination path for ddev import-files to /custom/upload/dir -# When mutagen is enabled this path is bind-mounted so that all the files -# in the upload_dir don't have to be synced into mutagen - -# working_dir: -# web: /var/www/html -# db: /home -# would set the default working directory for the web and db services. -# These values specify the destination directory for ddev ssh and the -# directory in which commands passed into ddev exec are run. - -# omit_containers: [db, dba, ddev-ssh-agent] -# Currently only these containers are supported. Some containers can also be -# omitted globally in the ~/.ddev/global_config.yaml. Note that if you omit -# the "db" container, several standard features of ddev that access the -# database container will be unusable. In the global configuration it is also -# possible to omit ddev-router, but not here. - -# nfs_mount_enabled: false -# Great performance improvement but requires host configuration first. -# See https://ddev.readthedocs.io/en/stable/users/performance/#using-nfs-to-mount-the-project-into-the-container - -# mutagen_enabled: false -# Performance improvement using mutagen asynchronous updates. -# See https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen - -# fail_on_hook_fail: False -# Decide whether 'ddev start' should be interrupted by a failing hook - -# host_https_port: "59002" -# The host port binding for https can be explicitly specified. It is -# dynamic unless otherwise specified. -# This is not used by most people, most people use the *router* instead -# of the localhost port. - -# host_webserver_port: "59001" -# The host port binding for the ddev-webserver can be explicitly specified. It is -# dynamic unless otherwise specified. -# This is not used by most people, most people use the *router* instead -# of the localhost port. - -# host_db_port: "59002" -# The host port binding for the ddev-dbserver can be explicitly specified. It is dynamic -# unless explicitly specified. - -# phpmyadmin_port: "8036" -# phpmyadmin_https_port: "8037" -# The PHPMyAdmin ports can be changed from the default 8036 and 8037 - -# host_phpmyadmin_port: "8036" -# The phpmyadmin (dba) port is not normally bound on the host at all, instead being routed -# through ddev-router, but it can be specified and bound. - -# mailhog_port: "8025" -# mailhog_https_port: "8026" -# The MailHog ports can be changed from the default 8025 and 8026 - -# host_mailhog_port: "8025" -# The mailhog port is not normally bound on the host at all, instead being routed -# through ddev-router, but it can be bound directly to localhost if specified here. - -# webimage_extra_packages: [php7.4-tidy, php-bcmath] -# Extra Debian packages that are needed in the webimage can be added here - -# dbimage_extra_packages: [telnet,netcat] -# Extra Debian packages that are needed in the dbimage can be added here - -# use_dns_when_possible: true -# If the host has internet access and the domain configured can -# successfully be looked up, DNS will be used for hostname resolution -# instead of editing /etc/hosts -# Defaults to true - -# project_tld: ddev.site -# The top-level domain used for project URLs -# The default "ddev.site" allows DNS lookup via a wildcard -# If you prefer you can change this to "ddev.local" to preserve -# pre-v1.9 behavior. - -# ngrok_args: --basic-auth username:pass1234 -# Provide extra flags to the "ngrok http" command, see -# https://ngrok.com/docs#http or run "ngrok http -h" - -# disable_settings_management: false -# If true, ddev will not create CMS-specific settings files like -# Drupal's settings.php/settings.ddev.php or TYPO3's AdditionalConfiguration.php -# In this case the user must provide all such settings. - -# You can inject environment variables into the web container with: -# web_environment: -# - SOMEENV=somevalue -# - SOMEOTHERENV=someothervalue - -# no_project_mount: false -# (Experimental) If true, ddev will not mount the project into the web container; -# the user is responsible for mounting it manually or via a script. -# This is to enable experimentation with alternate file mounting strategies. -# For advanced users only! - -# bind_all_interfaces: false -# If true, host ports will be bound on all network interfaces, -# not just the localhost interface. This means that ports -# will be available on the local network if the host firewall -# allows it. - -# default_container_timeout: 120 -# The default time that ddev waits for all containers to become ready can be increased from -# the default 120. This helps in importing huge databases, for example. - -#web_extra_exposed_ports: -#- name: nodejs -# container_port: 3000 -# http_port: 2999 -# https_port: 3000 -#- name: something -# container_port: 4000 -# https_port: 4000 -# http_port: 3999 -# Allows a set of extra ports to be exposed via ddev-router -# The port behavior on the ddev-webserver must be arranged separately, for example -# using web_extra_daemons. -# For example, with a web app on port 3000 inside the container, this config would -# expose that web app on https://.ddev.site:9999 and http://.ddev.site:9998 -# web_extra_exposed_ports: -# - container_port: 3000 -# http_port: 9998 -# https_port: 9999 - -#web_extra_daemons: -#- name: "http-1" -# command: "/var/www/html/node_modules/.bin/http-server -p 3000" -# directory: /var/www/html -#- name: "http-2" -# command: "/var/www/html/node_modules/.bin/http-server /var/www/html/sub -p 3000" -# directory: /var/www/html - -# override_config: false -# By default, config.*.yaml files are *merged* into the configuration -# But this means that some things can't be overridden -# For example, if you have 'nfs_mount_enabled: true'' you can't override it with a merge -# and you can't erase existing hooks or all environment variables. -# However, with "override_config: true" in a particular config.*.yaml file, -# 'nfs_mount_enabled: false' can override the existing values, and -# hooks: -# post-start: [] -# or -# web_environment: [] -# or -# additional_hostnames: [] -# can have their intended affect. 'override_config' affects only behavior of the -# config.*.yaml file it exists in. - -# Many ddev commands can be extended to run tasks before or after the -# ddev command is executed, for example "post-start", "post-import-db", -# "pre-composer", "post-composer" -# See https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/ for more -# information on the commands that can be extended and the tasks you can define -# for them. Example: -#hooks: -# post-start: -# - exec: composer install -d /var/www/html diff --git a/.github/workflows/notifications.yml b/.github/workflows/notifications.yml deleted file mode 100644 index a11e6ab..0000000 --- a/.github/workflows/notifications.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Send notifications - -on: [ release, issues, issue_comment, watch, pull_request_target ] - -jobs: - notification: - uses: maikschneider/reusable-workflows/.github/workflows/notifications.yml@main - secrets: - teams-webhook-url: ${{ secrets.TEAMS_WEBHOOK_URL }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 08c3a32..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: test-build-release - -on: [ push ] - -jobs: - - tests-sca: - uses: maikschneider/reusable-workflows/.github/workflows/sca.yml@main - with: - php-version: 8.1 - - release: - if: github.ref == 'refs/heads/development' - needs: - - tests-sca - uses: maikschneider/reusable-workflows/.github/workflows/release-typo3-extension.yml@main - secrets: - teams-webhook-url: ${{ secrets.TEAMS_WEBHOOK_URL }} - with: - base-branch: master - publish-ter: true diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 112f80c..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -public -!Resources/Public -.idea -vendor -bin -var diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php deleted file mode 100644 index 0d50baa..0000000 --- a/.phpstorm.meta.php +++ /dev/null @@ -1,89 +0,0 @@ - \TYPO3\CMS\Core\Context\DateTimeAspect::class, - 'visibility' => \TYPO3\CMS\Core\Context\VisibilityAspect::class, - 'backend.user' => \TYPO3\CMS\Core\Context\UserAspect::class, - 'frontend.user' => \TYPO3\CMS\Core\Context\UserAspect::class, - 'workspace' => \TYPO3\CMS\Core\Context\WorkspaceAspect::class, - 'language' => \TYPO3\CMS\Core\Context\LanguageAspect::class, - 'typoscript' => \TYPO3\CMS\Core\Context\TypoScriptAspect::class, - ])); - - expectedArguments( - \TYPO3\CMS\Core\Context\DateTimeAspect::get(), - 0, - 'timestamp', - 'iso', - 'timezone', - 'full', - 'accessTime' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\VisibilityAspect::get(), - 0, - 'includeHiddenPages', - 'includeHiddenContent', - 'includeDeletedRecords' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\UserAspect::get(), - 0, - 'id', - 'username', - 'isLoggedIn', - 'isAdmin', - 'groupIds', - 'groupNames' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\WorkspaceAspect::get(), - 0, - 'id', - 'isLive', - 'isOffline' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\LanguageAspect::get(), - 0, - 'id', - 'contentId', - 'fallbackChain', - 'overlayType', - 'legacyLanguageMode', - 'legacyOverlayType' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\TypoScriptAspect::get(), - 0, - 'forcedTemplateParsing' - ); -} \ No newline at end of file diff --git a/config/sites/main/config.yaml b/config/sites/main/config.yaml deleted file mode 100644 index 31f24d6..0000000 --- a/config/sites/main/config.yaml +++ /dev/null @@ -1,28 +0,0 @@ -base: 'https://bw-captcha.ddev.site/' -languages: - - - title: English - enabled: true - languageId: 0 - base: /en/ - typo3Language: default - locale: en_US.UTF-8 - iso-639-1: en - navigationTitle: English - hreflang: en-us - direction: ltr - flag: us - - - title: German - enabled: true - locale: de_DE - hreflang: '' - base: /de/ - websiteTitle: '' - navigationTitle: Deutsch - fallbackType: strict - fallbacks: '' - flag: de - languageId: 1 -rootPageId: 1 -websiteTitle: '' diff --git a/config/system/settings.php b/config/system/settings.php deleted file mode 100644 index 0d8224a..0000000 --- a/config/system/settings.php +++ /dev/null @@ -1,131 +0,0 @@ - [ - 'debug' => false, - 'installToolPassword' => '$argon2i$v=19$m=65536,t=16,p=1$MUI1TWwxTjdmR3EuMXFVaQ$O1abBx5kzrxBHraj4f4lv93jrktr8joRJ28P1AmEfvc', - 'passwordHashing' => [ - 'className' => 'TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\Argon2iPasswordHash', - 'options' => [], - ], - ], - 'DB' => [ - 'Connections' => [ - 'Default' => [ - 'charset' => 'utf8mb4', - 'driver' => 'mysqli', - ], - ], - ], - 'EXTCONF' => [ - 'lang' => [ - 'availableLanguages' => [ - 'de', - ], - ], - ], - 'EXTENSIONS' => [ - 'backend' => [ - 'backendFavicon' => '', - 'backendLogo' => '', - 'loginBackgroundImage' => '', - 'loginFootnote' => '', - 'loginHighlightColor' => '', - 'loginLogo' => '', - 'loginLogoAlt' => '', - ], - 'bootstrap_package' => [ - 'disableCssProcessing' => '0', - 'disableGoogleFontCaching' => '0', - 'disablePageTsBackendLayouts' => '0', - 'disablePageTsContentElements' => '0', - 'disablePageTsRTE' => '0', - 'disablePageTsTCADefaults' => '0', - 'disablePageTsTCEFORM' => '0', - 'disablePageTsTCEMAIN' => '0', - ], - 'extensionmanager' => [ - 'automaticInstallation' => '1', - 'offlineMode' => '0', - ], - ], - 'FE' => [ - 'debug' => false, - 'disableNoCacheParameter' => true, - 'passwordHashing' => [ - 'className' => 'TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\Argon2iPasswordHash', - 'options' => [], - ], - 'cacheHash' => [ - 'enforceValidation' => 0, - ], - ], - 'GFX' => [ - 'processor' => 'GraphicsMagick', - 'processor_allowTemporaryMasksAsPng' => false, - 'processor_colorspace' => 'RGB', - 'processor_effects' => false, - 'processor_enabled' => true, - 'processor_path' => '/usr/bin/', - ], - 'LOG' => [ - 'TYPO3' => [ - 'CMS' => [ - 'deprecations' => [ - 'writerConfiguration' => [ - 'notice' => [ - 'TYPO3\CMS\Core\Log\Writer\FileWriter' => [ - 'disabled' => true, - ], - ], - ], - ], - ], - ], - ], - 'MAIL' => [ - 'transport' => 'sendmail', - 'transport_sendmail_command' => '/usr/local/bin/mailhog sendmail test@example.org --smtp-addr 127.0.0.1:1025', - 'transport_smtp_encrypt' => '', - 'transport_smtp_password' => '', - 'transport_smtp_server' => '', - 'transport_smtp_username' => '', - ], - 'SYS' => [ - 'UTF8filesystem' => true, - 'caching' => [ - 'cacheConfigurations' => [ - 'hash' => [ - 'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend', - ], - 'imagesizes' => [ - 'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend', - 'options' => [ - 'compression' => true, - ], - ], - 'pages' => [ - 'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend', - 'options' => [ - 'compression' => true, - ], - ], - 'rootline' => [ - 'backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend', - 'options' => [ - 'compression' => true, - ], - ], - ], - ], - 'devIPmask' => '', - 'displayErrors' => 0, - 'encryptionKey' => 'a78dc52c3992e3a5c52d54fc9e928c363c08ca81f5112b98be8ab6ebf1f02faa24363b3ffc31356835fb600a8d0831bb', - 'exceptionalErrors' => 4096, - 'sitename' => 'New TYPO3 site', - 'systemMaintainers' => [ - 1, - ], - 'trustedHostsPattern' => '.*', - ], -]; diff --git a/php-cs-fixer.php b/php-cs-fixer.php deleted file mode 100644 index 7d66b9d..0000000 --- a/php-cs-fixer.php +++ /dev/null @@ -1,97 +0,0 @@ -ignoreVCSIgnored(true) - ->in(realpath(__DIR__)) - ->exclude('Libraries'); -// Return a Code Sniffing configuration using -// all sniffers needed for PSR-2 -// and additionally: -// - Remove leading slashes in use clauses. -// - PHP single-line arrays should not have trailing comma. -// - Single-line whitespace before closing semicolon are prohibited. -// - Remove unused use statements in the PHP source code -// - Ensure Concatenation to have at least one whitespace around -// - Remove trailing whitespace at the end of blank lines. -return (new \PhpCsFixer\Config()) - ->setRiskyAllowed(true) - ->setRules([ - '@DoctrineAnnotation' => true, - '@PSR2' => true, - 'array_syntax' => ['syntax' => 'short'], - 'blank_line_after_opening_tag' => true, - 'braces' => ['allow_single_line_closure' => true], - 'cast_spaces' => ['space' => 'none'], - 'compact_nullable_typehint' => true, - 'concat_space' => ['spacing' => 'one'], - 'declare_equal_normalize' => ['space' => 'none'], - 'dir_constant' => true, - 'function_typehint_space' => true, - 'lowercase_cast' => true, - 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], - 'modernize_types_casting' => true, - 'native_function_casing' => true, - 'new_with_braces' => true, - 'no_alias_functions' => true, - 'no_blank_lines_after_phpdoc' => true, - 'no_empty_phpdoc' => true, - 'no_empty_statement' => true, - 'no_extra_blank_lines' => true, - 'no_leading_import_slash' => true, - 'no_leading_namespace_whitespace' => true, - 'no_null_property_initialization' => true, - 'no_short_bool_cast' => true, - 'no_singleline_whitespace_before_semicolons' => true, - 'no_superfluous_elseif' => true, - 'no_trailing_comma_in_singleline_array' => true, - 'no_unneeded_control_parentheses' => true, - 'no_unused_imports' => true, - 'no_useless_else' => true, - 'no_whitespace_in_blank_line' => true, - 'ordered_imports' => true, - 'php_unit_construct' => ['assertions' => ['assertEquals', 'assertSame', 'assertNotEquals', 'assertNotSame']], - 'php_unit_mock_short_will_return' => true, - 'php_unit_test_case_static_method_calls' => ['call_type' => 'self'], - 'phpdoc_no_access' => true, - 'phpdoc_no_empty_return' => true, - 'phpdoc_no_package' => true, - 'phpdoc_scalar' => true, - 'phpdoc_trim' => true, - 'phpdoc_types' => true, - 'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'], - 'return_type_declaration' => ['space_before' => 'none'], - 'single_quote' => true, - 'single_line_comment_style' => ['comment_types' => ['hash']], - 'single_trait_insert_per_statement' => true, - 'trailing_comma_in_multiline' => ['elements' => ['arrays']], - 'whitespace_after_comma_in_array' => true, - ]) - ->setFinder($finder); diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon deleted file mode 100644 index aab4991..0000000 --- a/phpstan-baseline.neon +++ /dev/null @@ -1,2 +0,0 @@ -parameters: - ignoreErrors: [] diff --git a/phpstan.neon b/phpstan.neon deleted file mode 100644 index 68e39d0..0000000 --- a/phpstan.neon +++ /dev/null @@ -1,18 +0,0 @@ -includes: - - vendor/saschaegerer/phpstan-typo3/extension.neon - - phpstan-baseline.neon - -parameters: - parallel: - maximumNumberOfProcesses: 5 - - level: 8 - - bootstrapFiles: - - vendor/autoload.php - - paths: - - Classes - - Configuration - - excludePaths: