Skip to content

Commit

Permalink
Merge pull request #1 from pdir/php8-support
Browse files Browse the repository at this point in the history
php 8 support
  • Loading branch information
MDevster authored Mar 1, 2023
2 parents d4ee311 + 9b77784 commit a626a8e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

[//]: <> (
Types of changes
Added for new Addeds.
Changed for changes in existing functionality.
Deprecated for soon-to-be removed Addeds.
Removed for now removed Addeds.
Fixed for any bug fixes.
Security in case of vulnerabilities.
)

## [1.1.0](https://github.com/pdir/convert-to-bundle/tree/1.1.0) – 2023-02-28

- [Added] Add php8 support

## [1.0.0](https://github.com/pdir/convert-to-bundle/tree/1.0.0) – 2020-11-18

- [Added] First stable release
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"php": "^5.6 || ^7.0",
"php": "^5.6 || ^7.0 || ^8.0",
"contao/core-bundle": "^4.4"
},
"autoload": {
Expand Down
7 changes: 7 additions & 0 deletions src/Resources/contao/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@
/*
* Sources types
*/

$GLOBALS['CONVERT_TO'] = $GLOBALS['CONVERT_TO'] ?? [];

if (true !== array_key_exists('SOURCE_TYPE', $GLOBALS['CONVERT_TO'])) {
array_insert($GLOBALS['CONVERT_TO'], 1, ['SOURCE_TYPE' => []]);
}

$GLOBALS['CONVERT_TO']['SOURCE_TYPE'] = array_merge(
(array) $GLOBALS['CONVERT_TO']['SOURCE_TYPE'], [
'file' => 'Pdir\ConvertToBundle\Source\File',
Expand Down

0 comments on commit a626a8e

Please sign in to comment.