Releases: idmarinas/lotgd-game
Releases · idmarinas/lotgd-game
5.1.1
4.12.3
5.1.0
🌀 CHANGES
- Moved
templates/lotgd/
tothemes/LotgdTheme/templates/
folder - Moved
templates_core/
tothemes/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.
- Note:
🔥 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 consolephp bin/console cache:clear
).- From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
storage/cache/*
can empty with console comandphp bin/lotgd storage:cache_clear
- Not delete
.gitkeep
files. Remember to keep the main structure of the folderstorage/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
- Not delete
- 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
5.0.0
🌀 CHANGES
- Static class LotgdTranslator now get a instance of
Symfony Translator
Lotgd\Core\Http\Request
andLotgd\Core\Http\Response
- Move function
setCookie()
fromRequest
toResponse
- Move function
- Moved
lib/constants.php
tosrc/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
- Use Symfony Console and commands for run a install and upgrade the game core.
🔥 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.
- You can see a little example of Bundle in
- Use a Symfony Bundle type module when you can.
🔧 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
usebin/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
andphp bin/console about
can see stats.- This command not touch
storage/
folder onlyvar/
folder.
- This command not touch
- Symfony have the same command.
- Removed command
- 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 filesrc/core/Pattern/Container.php
- BC removed function of pattern
src/core/Pattern/Cache.php
getCache()
usegetCacheApp()
orgetCacheAppTag
for a tagged version.- Not create an alias because Laminas and Symfony work diferent.
- BC Twig Extensions
- Translation extension
- Removed filters:
t
usetrans
filterts
usetrans
filtertl
usetrans
filtertst
usetrans
filtertmf
usemf
(this funcion not translate only is a formatter)
- Removed token
{% translate_default_domain 'foobar' %}
use{% trans_default_domain 'foobar'%}
- Removed filters:
- Core Extension
- Removed function
{{ page_title() }}
use{{ head_title() }}
instead. - Removed function
{{ include_layout() }}
- Removed function
{{ include_theme() }}
- Removed function
{{ include_module() }}
- Removed function
- Translation extension
- Removed cronjob
cronjob/cacheoptimize.php
- Removed deprecated function of
lib/datetime.php
file:reltime()
useLotgdFormat::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
anduntranslated
not in use, use new translation systemnastywords
not in use, use new Censor systemLotgd\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 consolephp bin/console cache:clear
).- From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
storage/cache/*
can empty with console comandphp bin/lotgd storage:cache_clear
- Not delete
.gitkeep
files. Remember to keep the main structure of the folderstorage/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
- Not delete
- 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
4.12.0
🌀 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
useLotgdKernel::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 related files:
- 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 consolephp bin/console cache:clear
).- From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
storage/cache/*
can empty with console comandphp bin/lotgd storage:cache_clear
- Not delete
.gitkeep
files. Remember to keep the main structure of the folderstorage/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
- Not delete
- 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
4.11.1
4.11.0
🌀 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::
andLotgdResponse
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 totranslations/[locale]/page
folder
- Remove default scope
- Twig translation filter
- Filter
trans
now use Symfony Translator
- Filter
- 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
totranslations/en/page_about.yaml
- Example:
- This is for compatibility with Laminas Translator
- Rename all files prefixed with name of folder and moved to root folder
- 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.
- Templates of pages now use
⭐ FEATURES
- src/core/Pattern/Cache.php
- Added new function for get LoTGD Cache App Tagged. Service
core.lotgd.cache
- Added new function for get LoTGD Cache App Tagged. Service
- src/core/Paginator/Adapter/Doctrine.php
- Added option to get results as objects.
- Const
HYDRATE_OBJECT
- Const
- Added option to get results as objects.
- src/core/Pattern/Translator.php new function
messageFormatter($message, $parameters, $locale)
Only format a message withMessageFormatter::class
.- This function NO translate the message
- LoTGD Core Advertising Bundle
- Create new bundle for advertising providers like Google Adsense
- Providers available:
- Google Adsense
- Providers available:
- 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.
- Create new bundle for advertising providers like Google Adsense
🔥 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
useLotgdKernel::get('Lotgd\Core\Navigation\Navigation')
instead. - Remove factory of
Lotgd\Core\Http\Request
useLotgdKernel::get('Lotgd\Core\Http\Request')
instead. - Remove factory of
Lotgd\Core\Http\Response
useLotgdKernel::get('Lotgd\Core\Http\Response')
instead. - Remove factory of
Lotgd\Core\EventManager\Hook
useLotgdKernel::get('Lotgd\Core\EventManager\Hook')
instead. - Remove factory of
Lotgd\Core\Template\Params
useLotgdKernel::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 blockif ($form->isSubmitted() && $form->isValid()) { /* ... */ }
- This is important for avoid Doctrine save a invalid form.
- Delete
- For work with LoTGD Kernel need make this changes:
- Potential BC Remove composer package
laminas/laminas-mail
useLotgdKernel::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 consolephp bin/console cache:clear
).- From version 4.9.0 use Symfony Kernel, so work like Symfony Framework.
storage/cache/*
can empty with console comandphp bin/lotgd storage:cache_clear
- Not delete
.gitkeep
files. Remember to keep the main structure of the folderstorage/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
- Not delete
- 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