[Core] Don’t use the session for the captcha field (see #1387).
Description ----------- - Commits ------- 9d56fb0a Don’t use the session for the captcha field 93da6dbd Use hash_hmac() 25bd4505 Fix the coding style
[Core] Add drag and drop file upload for file tree (see #1386).
Description ----------- - Commits ------- bf325c27 Add drag and drop file upload for file tree 9d5637ec Fix the coding style. 101ae6d2 Use the old array notation.
[Core] Use the DCA picker for the URL field (see #1374).
Description ----------- This enables you to conveniently select news or events (or more) for external redirect pages. Commits ------- 5c9456da use dcaPicker for url field
[Core] Enable drag and drop for the file manger (see #1394).
Description ----------- Enables Drag and Drop for files and folders. Commits ------- 7a2fd9b2 Add drag and drop for file upload 0a162149 Fix the coding style.
[Core] Make the AutomatorCommand compatible with symfony/console ^4.0…
… (see #1384). Description ----------- `InputArgument` enforces its third parameter (`description`) to be of type `string`, so our nice way of assuring the lazy loading of the description (providing `$this` with a `__toString`) method does not work anymore in `symfony/console ^4.0`. I refactored it to use a service argument. Commits ------- 2429e433 Fixed argument types for AutomatorCommand in symfony/console ^4.0 afdb2676 Add a missing phpDoc comment.
[Core] Make all services public that we are retrieving directly from …
…the container (see #1383). Description ----------- I searched the Contao source code for instances of `getContainer()->get('...');` occurrences, filtered out `contao` prefixed services and "uniquified" the resulting array. ``` assets.packages database_connection doctrine.dbal.default_connection event_dispatcher filesystem fragment.handler lexik_maintenance.driver.factory monolog.logger.contao request_stack router security.authentication_utils security.authorization_checker security.firewall.map security.logout_url_generator security.token_storage session swiftmailer.mailer translator ``` After intersecting this array to the one found in this ticket (future public services) [this ticket](symfony/symfony#24104), we end up with: ``` assets.packages database_connection doctrine.dbal.default_connection fragment.handler lexik_maintenance.driver.factory monolog.logger.contao security.firewall.map security.logout_url_generator swiftmailer.mailer ``` I added those to our `MakeServicesPublicPass` and made sure it will also find aliases instead of definitions only. Unfortunately I'm not sure if I really caught all direct service references. Do you have any other ideas? Commits ------- d6df8a8a Make all services public that we are retrieving directly from the container. 579c1138 CS Fix a93083a2 Test all services in the unit test.
# Conflicts: # src/Resources/public/core.min.js
[Installation] Merge branch '4.5'
# Conflicts: # CHANGELOG.md # src/Resources/translations/messages.fr.xlf
# Conflicts: # CHANGELOG.md # src/Resources/contao/themes/flexible/main.css
# Conflicts: # CHANGELOG.md # src/Composer/ScriptHandler.php
[Core] Add a translator insert tag (see #1400).
Description
-----------
Contao 4.5 supports the Symfony translator, but there is no insert tag to use the Symfony translator. Here's a fix for that.
- `{{trans::foo_bar}}` => Replace `foo_bar` with the default message domain (*messages*), mostly not useful
- `{{trans::foo_bar::app}}` => Replace `foo_bar` from `app` message domain
- `{{trans::foo_bar::app::param1:param2}}` => Replace `foo_bar` from `app` message domain with parameters `param1` and `param2`. The parameters are separated by single colons, like they are for the `label` insert tag.
Commits
-------
9bc77b9d Added event listener for {{trans::}} insert tag
e0590f71 Fixed empty parameters
03694976 Switch domain and parameter position
d1bd88f1 Added unit tests
ac1a54f7 Fix the coding style.