Skip to content

Latest commit

 

History

History
939 lines (689 loc) · 37.3 KB

CHANGELOG-V7.md

File metadata and controls

939 lines (689 loc) · 37.3 KB

History of changes for IDMarinas Edition

This is a list of changes made in versions 7.Y.Z

Changes of LoTGD IDMarinas Edition

Visit the Wiki for more details.
Visit the Documentation for more details.
Visit the README.
Visit DEV Changelog
Visit V2 Changelog
Visit V3 Changelog
Visit V5 Changelog
Visit V6 Changelog

Version: 7.1.13

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • All Fixed class
    • Added documented methods for IDEs

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Nothing

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.12

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • All Fixed class
    • Added documented methods for IDEs

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • public/common_common.php Fixed a rare error where the gensize could exceed the maximum allowed value.

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.11

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Fixed an error in 6.0.0 migration database, when make an installation.

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.10

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • translations/en/page_pvp+intl-icu.en.yaml and src/core/Pvp/Support Fix error with var name.
  • src/core/Entity/ModuleUserprefs.php Fixed fields, not allow null values.
  • lib/modules/prefs.php Add default values when not found pref.
  • src/core/Controller/ClanController.php Allow see list of clans when clanrank is applicant.
  • src/core/Controller/GypsyController.php Fixed, now return index if not have money
  • public/inn.php Fix error, use $method to now if is default page

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.9

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • templates/page/_blocks/_bank.html.twig Fix error, now pass more info as params.
  • translations/en/page_pvp+intl-icu.en.yaml Fix error with var name.

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.8

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • public/images/logdnet.php and src/core/Http/Response.php Avoid save user when register in Logdnet
  • src/core/Controller/HofController.php Fixed error in order of money
  • src/core/Entity/Faillog.php Fixed error in typing post is an array not a string
  • src/core/Entity/Pettitions.php Fixed error in typing post is an array not a string
  • tailwind.config.js Add to content key ./vendor/**/*.twig for search TailwindCSS class in templates

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.7

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • src/core/Combat/Battle.php Add Battle Expression dependencie
  • src/core/ExpressionLanguage/BattleProvider.php Add function floor to avoid errors
  • src/core/Installer/Pattern/Version.php Add missing version 7.1.6
  • src/core/Controller/StablesController.php Fixed error when buy creature and sell other.
  • src/core/Combat/Battle.php and src/core/Combat/BattleStart.php Fixed bug that caused buffs not to be retained
  • src/core/Tool/Tool/DeathMessage.php Fixed error, no use property $this->translator
  • src/core/Tool/Tool/Taunt.php Fixed error, no use property $this->translator
  • src/core/Controller/GraveyardController.php Fixed error that, when win battle not show navs

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.6

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • migrations/2021/Version20210127183022.php Quote location and function in create table module_hooks

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.5

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • src/core/Installer/Pattern/Version.php Fixed, added missing versions
  • src/core/Navigation/Navigation.php Fixed, now check correct if exist navs

❌ REMOVES

  • Deleted dependency of laminas/laminas-code not in use

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.4

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • src/core/Controller/ClanController.php Fixed, add global variable $session
  • src/core/Controller/NewdayController.php and src/core/Controller/NewdayController/DragonPointSpendTrait.php Pass parameter $labels to method

❌ REMOVES

  • Deleted dependency of laminas/laminas-code not in use

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.3

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • src/core/Controller/StableController.php Fixed error when buy/sell mount
  • src/core/Http/Response.php and src/core/Tool/Tool.php Fixed (maybe) broken navs that occurred sometimes.

❌ REMOVES

  • Deleted dependency of laminas/laminas-code not in use

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.2

🌀 CHANGES

  • Added support for PHP version 8 in composer.json file

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Nothing

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.1

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • src/core/Tool/Validator.php Fix error with checking if email is valid
  • src/core/Controller/CreateController.php Fixed error with validation email address.
    • Previously it treated the id as numeric when it was a string.
  • src/core/Controller/GraveyardController.php Fixed error, mark function setServiceCreatureFunction with required annotation.
    • With this, Symfony inject services.
  • src/core/Controller/StableController.php Fixed error with name of var. dipatcher to dispatcher
  • public/gardens Fixed error, pass $textDomainNavigation as argument.
  • src/core/Twig/Extension/Pattern/News.php Check if arguments is an array.

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
    • ⚠️ Version 8.0.0 deleted old system of modules and JaxonPHP
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.1.0

🌀 CHANGES

  • BC Min PHP version needed is 7.4
  • assets/lib/components/embed.js Lotgd.embed(this) now also receives the event parameter Lotgd.embed(this, event)
  • Faq menu moved from Village/Shades menu to Top menu.
    • Now can see FAQ always.

⭐ FEATURES

  • stimulus-controller Petition, add new function for load custom faq. Need pass url as param.
    • Example of usage
        $args[] = [
            'attr' => [
                'data-action' => 'click->petition#loadFaq',
                'data-petitition-url-param' => 'stimulus.php?method=NameOfMethod&controller=NamespaceOfController'
            ],
            'link'    => [
                'section.faq.toc.cities',
                [],
                'cities_module',
            ],
        ];

🔥 DEPRECATED

  • src/functions.php Mark functions as deprecated:
    • myDefine
    • safeescape
    • nltoappon

🔧 FIXES

  • src/core/Repository/UserRepository.php Fixed error with place of Debugger::log() in function getUserById
  • themes/LotgdModern/templates/page/bio.html.twig Fixed error with key of translation
  • translations/en/page_bio+intl-icu.en.yaml add missing key translation
  • src/core/Repository/User/Avatar.php Fixed error when not found news for user, now return a correct empty array
  • public/bans.php Fixed error that can add bans
  • Fixed some code smells and vulnerabilities

❌ REMOVES

  • public/common_common.php Deleted code to create file .env.local.php
    • You need to create this file before upgrading from a version earlier than 4.9.0
  • assets/lib/game/datacache.js Deleted unused functions
    • Use console to clear cache.

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.0.4

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Add file .htaccess to root folder for redirect to the folder "public/".
    • You can change DocumentRoot in the Apache VirtualHost configuration file.

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Updated for use Tailwind CSS
    • src/core/Twig/Extension/Pattern/Commentary.php Icons now use FontAwesome class names

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.0.3

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • lib/showform.php Updated for show form with Tailwind CSS
  • Use new name of Stimulus package, this avoids some errors.
    • assets/stimulus/controllers/form/input_range_controller.js
    • assets/stimulus/controllers/form/submit_controller.js
  • systemmail Remplace systemmail() function for service method.
  • is_email Remplace is_email() function for service method.

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.0.2

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Service Create a public service lotgd_http_client use this instead of http_client
  • Commentary Fixed error with undefined "Lotgd"

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.0.1

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Cron commands Fixed error, now import translator service.
  • src/core/Repository/MotdRepository.php Fixed error with type of value returned for method getLastMotd
  • src/functions_old.php Fix error, now check if function exists
  • src/core/Character/Stats.php Make "$val" optional argument too

❌ REMOVES

  • Nothing

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

Version: 7.0.0

🌀 CHANGES

  • Nothing

⭐ FEATURES

  • TailwindCSS new Framework for style APP.
    • **For create new themes can use tailwind.config.js
  • Twig Template System
    • New functions:
      • stimulus_url Get a valid stimulus url like "stimulus.php?method=index&controller=Controller
        • Usage: {{ stimulus_url('Controller\Name', 'method_name', '&query=value') }}
  • Notifications System
    • Add a new notifications system (Toast notifications)
    • Use Stimulus to show notifications
    • For add a notification you can use Trait Lotgd\Core\Pattern\LotgdControllerTrait in your controller.
      • Use method $this->addNotification('type', 'Notification message'); this is the basic format.
      • This is the alternative format.
            $this->addNotification('type', [
                'title' => 'Notification Title', 
                'notification' => 'Notification message', 
                'close' => false,
                'duration' => 7000 // Time in milliseconds
                'id' => 'id-for-notification' //-- By default is auto-generated
            ]);
  • Form system
    • New Form Type Field
      • Lotgd\Core\Form\Type\TextareaLimitType
        • This type create a text area with a counter of characters that have limit
      • Lotgd\Core\Form\Type\AutocompleteType
        • This ty pe create an input field for autocomplete from server.

🔥 DEPRECATED

  • Deprecated trait: Lotgd\Core\Controller\Pattern\RenderBlockTrait
    • Use Lotgd\Core\Pattern\LotgdControllerTrait instead
      • This trait have other methods used in LoTGD
  • JaxonPHP is deprecated and deleted of core in version 8.0.0
    • You can add these dependencies if your use it in version 8.0.0 and up
    • Think about migrating all JaxonPHP classes to Stimulus.

🔧 FIXES

  • Twig\Extension\Pattern\PageGen.php Avoid error division by cero

❌ REMOVES

  • BC Semantic UI/Fomantic UI is removed and remplace with TailwindCSS
  • BC Removed deprecation functions
    • src/functions.php
      • is_email Use service LotgdKernel::get("lotgd_core.tool.validator")->isMail($string) instead
      • arraytourl Use php function http_build_query instead.
      • urltoarray Use php function parse_str instead.
      • createstring Use php function serialize instead.
      • list_files Use php Symfony Component Finder instead.
      • _curl Use service LotgdKernel::get("http_client") instead.
      • _sock Use service LotgdKernel::get("http_client") instead.
      • pullurl Use service LotgdKernel::get("http_client") instead.
    • BC Removed files
      • lib/holyday_texts.php holidayize Use LotgdTool::holidayize($text, $type)
      • lib/mountname.php getmountname This function is not used by the core.
      • lib/mounts.php getmount Use LotgdTool::getMount($horse) instead.
      • lib/partner.php get_partner Use LotgdTool::getPartner($player) instead.
      • lib/pvpwarning.php pvpwarning Use LotgdKernel::get("Lotgd\Core\Pvp\Warning")->warning($dokill) instead.
      • lib/pvpsupport.php
        • setup_pvp_target Use LotgdKernel::get("Lotgd\Core\Pvp\Support")->setupPvpTarget($characterId) instead.
        • pvpvictory Use LotgdKernel::get("Lotgd\Core\Pvp\Support")->pvpVictory($badguy, $killedloc) instead.
        • pvpdefeat Use LotgdKernel::get("Lotgd\Core\Pvp\Support")->pvpDefeat($badguy, $killedloc) instead.
      • lib/names
        • get_player_title Use LotgdTool::getPlayerTitle($old) instead.
        • get_player_basename Use LotgdTool::getPlayerBasename($old) instead.
        • change_player_name Use LotgdTool::changePlayerName($newname, $old) instead.
        • change_player_ctitle Use LotgdTool::changePlayerCtitle($nctitle, $old) instead.
        • change_player_title Use LotgdTool::changePlayerTitle($ntitle, $old) instead.
      • lib/pageparts.php
        • wipe_charstats Use LotgdKernel::get("Lotgd\Core\Character\Stats")->wipeStats() instead.
        • addcharstat Use LotgdKernel::get("Lotgd\Core\Character\Stats")->addcharstat($label, $value) instead.
        • getcharstat Use LotgdKernel::get("Lotgd\Core\Character\Stats")->getcharstat($cat, $label) instead.
        • setcharstat Use LotgdKernel::get("Lotgd\Core\Character\Stats")->setcharstat($cat, $label, $val) instead.
        • getcharstat_value Use LotgdKernel::get("Lotgd\Core\Character\Stats")->getcharstat($cat, $label) instead.
        • getcharstats Use LotgdKernel::get("Lotgd\Core\Service\PageParts")->getCharStats($buffs) instead.
        • charstats Use LotgdKernel::get("Lotgd\Core\Service\PageParts")->charStats($return) instead.
      • lib/personal_functions.php killplayer Use LotgdKernel::get('lotgd_core.tool.staff')->killPlayer($explossproportion, $goldlossproportion) instead.
      • lib/systemmail.php systemmail Use LotgdKernel::get('lotgd_core.tool.system_mail')->send($to, $subject, $body, $from, $noemail) instead.
      • lib/titles.php
        • valid_dk_title Use LotgdTool::validDkTitle($title, $dks, $gender) instead.
        • get_dk_title Use LotgdTool::getDkTitle($dks, $gender, $ref) instead.
      • src/core/Application.php Lotgd\Core\Application Use Lotgd\Core\Kernel instead.
  • BC Removed some traits
    • src/core/Pattern/Cache.php
    • src/core/Pattern/Censor.php
    • src/core/Pattern/Container.php
    • src/core/Pattern/Doctrine.php
    • src/core/Pattern/EntityHydrator.php
    • src/core/Pattern/Format.php
    • src/core/Pattern/Http.php
    • src/core/Pattern/Jaxon.php
    • src/core/Pattern/LotgdCore.php
    • src/core/Pattern/Navigation.php
    • src/core/Pattern/Output.php
    • src/core/Pattern/Sanitize.php
    • src/core/Pattern/Settings.php
    • src/core/Pattern/Template.php
    • src/core/Pattern/ThemeList.php
    • src/core/Pattern/Translator.php
    • Note: use Dependency Injection.

📓 NOTES

  • Important:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
    • ⚠️ Avoid, as far as possible, using static classes (e.g. LotgdSetting, Doctrine, LotgdTranslation...) as these classes will be deleted in a future version. Use autowire, dependency injection when possible.
    • ⚠️ Version 7.0.0 change templates for use TailwindCSS
  • Upgrade/Install for version 5.0.0 and up
    • First read docs and follow steps.
    • If you have problems:
      • Read info in storage/log/tracy/* files, and see the problem.
      • Read info in var/log/* files, and see the problem.
      • Read info in var/log/apache2/error.log (this is the default location in Debian, can change in your OS distribution) in your webserver.
      • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies