Skip to content

Releases: idmarinas/lotgd-game

5.1.1

12 Feb 17:49
Compare
Choose a tag to compare

Fixed some errors.

4.12.3

09 Feb 16:23
Compare
Choose a tag to compare

Fixed some errors.

5.1.0

05 Feb 13:24
Compare
Choose a tag to compare

🌀 CHANGES

  • Moved templates/lotgd/ to themes/LotgdTheme/templates/ folder
  • Moved templates_core/ to themes/LotgdTheme/templates/admin/ folder

⭐ FEATURES

  • New Theme System
    • This version included new Theme System powered by SyliusThemeBundle
    • This new system allow to customize appearance of LoTGD more easy. This
    • And them can change the theme of LoTGD easy.
      • At the moment it does not allow the user to change the theme.
    • Theme structure in themes/ folder.
      AcmeTheme
      ├── theme.json
      ├── public
      │   └── asset.jpg
      ├── templates
      │   ├── bundles
      │   │   └── AcmeBundle
      │   │       └── bundleTemplate.html.twig
      |   └── template.html.twig
      └── translations
         └── messages.en.yml
      
    • Olso include Sonata Blocks
      • Note: sonata_block_render_event() not working.

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Nothing

❌ REMOVES/Break Changes

  • Removed src/core/Template/Template.php
  • Removed src/core/Twig/Loader/LotgdFilesystemLoader.php

📓 NOTES

  • Notes:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
  • Upgrade/Install for version 4.9.0 and up
    • First, upload files to your server (production compilation):
    • Second, empty cache:
      • var/ delete this folder (or use command in console php bin/console cache:clear).
        • From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
      • storage/cache/* can empty with console comand php bin/lotgd storage:cache_clear
        • Not delete .gitkeep files. Remember to keep the main structure of the folder storage/cache/
        • It is highly recommended to use the command php bin/lotgd storage:cache_clear instead delete folder.
        • Note: if fail when run console command, manual delete: storage/cache/service-manager.config.php
    • Third, read info in storage/log/tracy/* files, and see the problem.
    • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

4.12.2

05 Feb 13:23
Compare
Choose a tag to compare

Fixed minor errors.

5.0.0

02 Feb 17:00
Compare
Choose a tag to compare

🌀 CHANGES

  • Static class LotgdTranslator now get a instance of Symfony Translator
  • Lotgd\Core\Http\Request and Lotgd\Core\Http\Response
    • Move function setCookie() from Request to Response
  • Moved lib/constants.php to src/constants.php

⭐ FEATURES

  • New installation system
    • Use Symfony Console and commands for run a install and upgrade the game core.
      • Game only detect if are installed, not detect if need a upgrade.
    • Install game is easy run the follow command: php bin/console lotgd:install
    • Note: As a Symfony App (50% or so ^_^) you need run commands in terminal from root directory of game.
    • New installer not install modules, you need manual install the bundle.
      • Remember that Old module system are deprecated and deleted in version 7.0.0

🔥 DEPRECATED

  • All static class in src/core/Fixed/ folder are deprecated. If possible use the services as you would do in a Symfony app.
    • All these classes will be removed in version 7.0.0.
  • All pattern class in src/core/Pattern/ folder are deprecated. If possible use Dependency Injection.
    • All these patterns will be removed in version 7.0.0.
  • Old module system are deprecated and deleted in version 7.0.0
    • Use a Symfony Bundle type module when you can.
      • You can see a little example of Bundle in lib/AdvertisingBundle and you can search for the web.

🔧 FIXES

  • lib/deathmessage.php and lib/taunt.php fixed error with translation function (now pass empty array as param)
  • lib/battle/functions.php fixed error with name of index of Overlord
  • public/graveyard.php fixed error in format of arrays
  • templates/lotgd/pages/_macros/_battle.html.twig fixed error with text domain

❌ REMOVES/Break Changes

  • BC remove LoTGD console bin/lotgd use bin/console
    • Removed command src/core/Command/StorageCacheClearCommand.php
    • Removed command src/core/Command/StorageCacheStatsCommand.php
      • Symfony have the same command. php bin/console cache:clear and php bin/console about can see stats.
        • This command not touch storage/ folder only var/ folder.
  • BC removed files/config related to Laminas Form use Symfony Form instead.
  • BC removed Service Manager to create factories Laminas Service Manager use LoTGD Kernel instead (and all related files).
  • BC removed static class LotgdCache because Laminas Cache and Symfony Cache work diferent.
  • BC removed static class Dbwrapper as DB:: because Laminas DB is deleted use Doctrine
  • BC removed static class LotgdLocator because Laminas Service Manager is deleted use LotgdKernel for get services.
  • BC removed function of get/set(container) in file src/core/Pattern/Container.php
  • BC removed function of pattern src/core/Pattern/Cache.php
    • getCache() use getCacheApp() or getCacheAppTag for a tagged version.
      • Not create an alias because Laminas and Symfony work diferent.
  • BC Twig Extensions
    • Translation extension
      • Removed filters:
        • t use trans filter
        • ts use trans filter
        • tl use trans filter
        • tst use trans filter
        • tmf use mf (this funcion not translate only is a formatter)
      • Removed token {% translate_default_domain 'foobar' %} use {% trans_default_domain 'foobar'%}
    • Core Extension
      • Removed function {{ page_title() }} use {{ head_title() }} instead.
      • Removed function {{ include_layout() }}
      • Removed function {{ include_theme() }}
      • Removed function {{ include_module() }}
  • Removed cronjob cronjob/cacheoptimize.php
  • Removed deprecated function of lib/datetime.php file:
    • reltime() use LotgdFormat::relativedate($indate, $default) instead
  • BC remove file lib/translator.php and all functions:
    • translator_setup()
    • translate()
    • sprintf_translate()
    • translate_inline()
    • translate_mail()
    • tl()
    • translate_loadnamespace()
    • tlbutton_push()
    • tlbutton_pop()
    • tlbutton_clear()
    • enable_translation()
    • tlschema()
    • translator_check_collect_texts()
    • translator_uri()
    • translator_page()
    • comscroll_sanitize()
  • Removed Jaxon command src/ajax/core/Cache.php
  • Removed entity src/core/Entity/Nastywords.php not in use
  • BC ⚠️ Tables deleted:
    • translations and untranslated not in use, use new translation system
    • nastywords not in use, use new Censor system Lotgd\Core\Output\Censor can get as service
  • BC remove validators not in use.
    • src/core/Validator/Db/NoObjectExists.php
    • src/core/Validator/Db/ObjectExists.php
    • src/core/Validator/DelimeterIsCountable.php

📓 NOTES

  • Notes:
    • ⚠️ Since version 5.0.0 Installer is only via terminal (command: php bin/console lotgd:install)
  • Upgrade/Install for version 4.9.0 and up
    • First, upload files to your server (production compilation):
    • Second, empty cache:
      • var/ delete this folder (or use command in console php bin/console cache:clear).
        • From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
      • storage/cache/* can empty with console comand php bin/lotgd storage:cache_clear
        • Not delete .gitkeep files. Remember to keep the main structure of the folder storage/cache/
        • It is highly recommended to use the command php bin/lotgd storage:cache_clear instead delete folder.
        • Note: if fail when run console command, manual delete: storage/cache/service-manager.config.php
    • Third, read info in storage/log/tracy/* files, and see the problem.
    • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

4.12.1

29 Jan 19:45
Compare
Choose a tag to compare

Fixed a potential error with Censor and language, now use default_locale of app.

4.12.0

22 Jan 15:08
Compare
Choose a tag to compare

🌀 CHANGES

  • Migrated Lotgd\Core\Template\Theme factory to LoTGD Kernel service
    • LotgdNavigation:: static class get the new Kernel service

⭐ FEATURES

  • Nothing

🔥 DEPRECATED

  • Nothing

🔧 FIXES

  • Nothing

❌ REMOVES/Break Changes

  • Remove factory of Lotgd\Core\Template\Theme use LotgdKernel::get('twig') instead.
    • Remove related files:
      • src/core/Factory/Template/EntrypointLookupCollection.php
      • src/core/Factory/Template/Packages.php
      • src/core/Factory/Template/TagRender.php
      • src/core/Factory/Template/Theme.php
  • Remove file src/core/Template/Base.php not in use and is deprecated.
  • Remove deprecated file src/core/Template/Theme.php.

📓 NOTES

  • IMPORTANT This is the latest version of the 4.x series. The next version will be 5.0.0 which will remove many obsolete parts.
  • Upgrade/Install for version 4.9.0 and up
    • First, upload files to your server (production compilation):
    • Second, empty cache:
      • var/ delete this folder (or use command in console php bin/console cache:clear).
        • From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
      • storage/cache/* can empty with console comand php bin/lotgd storage:cache_clear
        • Not delete .gitkeep files. Remember to keep the main structure of the folder storage/cache/
        • It is highly recommended to use the command php bin/lotgd storage:cache_clear instead delete folder.
        • Note: if fail when run console command, manual delete: storage/cache/service-manager.config.php
    • Third, read info in storage/log/tracy/* files, and see the problem.
    • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies

4.11.2

21 Jan 18:31
Compare
Choose a tag to compare

Update query, now contemplates the two possible options to be replaced.

4.11.1

21 Jan 18:22
Compare
Choose a tag to compare

Fixed issue with update installer.

4.11.0

20 Jan 13:17
Compare
Choose a tag to compare

🌀 CHANGES

  • Migrated Lotgd\Core\Navigation\Navigation factory to LoTGD Kernel service
    • LotgdNavigation:: static class get the new Kernel service
  • Migrated Lotgd\Core\Http\Request and Lotgd\Core\Http\Response factory to LoTGD Kernel service
    • LotgdRequest:: and LotgdResponse static class get the new Kernel service
  • Migrated Lotgd\Core\EventManager\Hook LoTGD Kernel service
    • LotgdHook:: static class get the new Kernel service
  • Migrated Lotgd\Core\Template\Params factory to LoTGD Kernel service
  • Translation system
    • Laminas Translator
      • Remove default scope page from text domain.
      • Now can add translator files to translations/[locale] folder, and no need move to translations/[locale]/page folder
    • Twig translation filter
      • Filter trans now use Symfony Translator
    • Translation files in translations/en
      • Rename all files prefixed with name of folder and moved to root folder translations/en
        • Example: translations/en/page/about.yaml to translations/en/page_about.yaml
      • This is for compatibility with Laminas Translator
  • LoTGD pages
    • Templates of pages now use trans filter.
      • Adapted all text domains to use with Symfony Translator.
      • Work with Laminas Translator too.

⭐ FEATURES

  • src/core/Pattern/Cache.php
    • Added new function for get LoTGD Cache App Tagged. Service core.lotgd.cache
  • src/core/Paginator/Adapter/Doctrine.php
    • Added option to get results as objects.
      • Const HYDRATE_OBJECT
  • src/core/Pattern/Translator.php new function
    • messageFormatter($message, $parameters, $locale) Only format a message with MessageFormatter::class.
      • This function NO translate the message
  • LoTGD Core Advertising Bundle
    • Create new bundle for advertising providers like Google Adsense
      • Providers available:
        • Google Adsense
    • Can create your on providers.
    • In this version LoTGD Core 4.11.0 need add your Twig Extension as a factory of Laminas Service Manager like other Twig Extensions.

🔥 DEPRECATED

  • Lotgd\Core\ServiceManager are deprecated and deleted in version 5.0.0
    • Use LoTGD Kernel service for create service.
  • Lotgd\Core\Hook are deprecated and deleted in version 7.0.0 (or before)
    • In version 7.0.0 LoTGD Core is a Symfony App
    • LoTGD Core use Symfony Event system in this version, that is more powerfull.
    • For now use old hook system.

🔧 FIXES

  • Form Configuration Events use correct label for Events chances.

❌ REMOVES and Break Changes

  • Remove factory of Lotgd\Core\EventManager\Event not in use.
  • Remove factory of Lotgd\Core\Navigation\Navigation use LotgdKernel::get('Lotgd\Core\Navigation\Navigation') instead.
  • Remove factory of Lotgd\Core\Http\Request use LotgdKernel::get('Lotgd\Core\Http\Request') instead.
  • Remove factory of Lotgd\Core\Http\Response use LotgdKernel::get('Lotgd\Core\Http\Response') instead.
  • Remove factory of Lotgd\Core\EventManager\Hook use LotgdKernel::get('Lotgd\Core\EventManager\Hook') instead.
  • Remove factory of Lotgd\Core\Template\Params use LotgdKernel::get('Lotgd\Core\Template\Params') instead.
  • Remove file src/core/Factory/Doctrine/Extension/TablePrefix.php not in use.
  • Remove file src/core/Pattern/EventManager.php not in use.
  • BC Remove factory Lotgd\Core\SymfonyForm use \LotgdKernel::get('form.factory'); instead.
    • For work with LoTGD Kernel need make this changes:
      • Delete Doctrine::detach($entity); no is needed.
      • Replace $form->handleRequest(); for $form->handleRequest(\LotgdRequest::_i());
      • Replace $method = $entity->getId() ? 'merge' : 'persist'; and \Doctrine::{$method}($entity); for \Doctrine::persist($entity);
        • No need check if is a new or update.
      • Add \Doctrine::clear(); after block if ($form->isSubmitted() && $form->isValid()) { /* ... */ }
        • This is important for avoid Doctrine save a invalid form.
  • Potential BC Remove composer package laminas/laminas-mail use LotgdKernel::get('lotgd.core.mailer') (Symfony Mailer)
  • config/autoload/global/advertising-lotgd-core.php delete, use config/packages/lotgd_core_advertising.yaml for config Adsense

📓 NOTES

  • Upgrade/Install for version 4.9.0 and up
    • First, upload files to your server (production compilation):
    • Second, empty cache:
      • var/ delete this folder (or use command in console php bin/console cache:clear).
        • From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
      • storage/cache/* can empty with console comand php bin/lotgd storage:cache_clear
        • Not delete .gitkeep files. Remember to keep the main structure of the folder storage/cache/
        • It is highly recommended to use the command php bin/lotgd storage:cache_clear instead delete folder.
        • Note: if fail when run console command, manual delete: storage/cache/service-manager.config.php
    • Third, read info in storage/log/tracy/* files, and see the problem.
    • If you can't solve the problem go to: Repository issues
  • composer.json Updated/Added/Deleted dependencies
  • package.json Updated/Added/Deleted dependencies