Skip to content

Commit 5335c9e

Browse files
committed
Release 1.2.5: fix ux:icons:lock for UX Icons 3.x
1 parent ea8baae commit 5335c9e

15 files changed

Lines changed: 44 additions & 25 deletions

File tree

.symfony/recipes/nowo-tech/password-toggle-bundle/1.2.3/post-install.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ Password Toggle Bundle has been installed.
66

77
Next steps:
88

9-
1. Lock icons for production / offline use:
10-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
9+
1. Lock icons used in Twig templates for production / offline use:
10+
php bin/console ux:icons:lock
11+
12+
(UX Icons 3.x scans templates; no icon names as arguments. Use --force to overwrite locals.)
1113

1214
2. Add the form theme in config/packages/twig.yaml if not already present:
1315
form_themes:
@@ -16,6 +18,6 @@ Next steps:
1618
Without Symfony Flex, install dependencies manually:
1719

1820
composer require symfony/ux-icons symfony/http-client
19-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
21+
php bin/console ux:icons:lock
2022

2123
The default widget uses ux_icon(); without these packages icons are omitted (toggle still works).

.symfony/recipes/nowo-tech/password-toggle-bundle/1.2.4/post-install.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ Password Toggle Bundle has been installed.
66

77
Next steps:
88

9-
1. Lock icons for production / offline use:
10-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
9+
1. Lock icons used in Twig templates for production / offline use:
10+
php bin/console ux:icons:lock
11+
12+
(UX Icons 3.x scans templates; no icon names as arguments. Use --force to overwrite locals.)
1113

1214
2. Add the form theme in config/packages/twig.yaml if not already present:
1315
form_themes:
@@ -16,6 +18,6 @@ Next steps:
1618
Without Symfony Flex, install dependencies manually:
1719

1820
composer require symfony/ux-icons symfony/http-client
19-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
21+
php bin/console ux:icons:lock
2022

2123
The default widget uses ux_icon(); without these packages icons are omitted (toggle still works).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ When `toggle` is `false`, the field renders as a standard password input without
147147

148148
```bash
149149
composer require symfony/ux-icons symfony/http-client
150-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
150+
php bin/console ux:icons:lock
151151
```
152152

153153
If those packages are missing, the toggle still works but icons are omitted; see [docs/INSTALLATION.md](docs/INSTALLATION.md#missing-icon-packages-runtime-behaviour).

demo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ If Composer reports that the path repository has higher priority but `dev-main`
365365
Demos require **symfony/ux-icons** and **symfony/http-client** (matching the demo Symfony major). After `composer install`, lock the default tabler icons:
366366

367367
```bash
368-
docker-compose exec php php bin/console ux:icons:lock tabler:eye tabler:eye-off
368+
docker-compose exec php php bin/console ux:icons:lock
369369
```
370370

371371
Composer `auto-scripts` in each demo run this on `post-install-cmd` / `post-update-cmd`. If icons are still missing, ensure `assets/icons/tabler/eye.svg` and `eye-off.svg` exist (copy from `.symfony/recipes/nowo-tech/password-toggle-bundle/1.2.3/assets/icons/tabler/` in the bundle repo) and check `config/packages/ux_icons.yaml`.

demo/symfony6/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"test-coverage": "phpunit --coverage-html coverage --coverage-clover coverage.xml",
6666
"auto-scripts": {
6767
"cache:clear": "symfony-cmd",
68-
"ux:icons:lock tabler:eye tabler:eye-off": "symfony-cmd"
68+
"ux:icons:lock": "symfony-cmd"
6969
},
7070
"post-install-cmd": [
7171
"@auto-scripts"

demo/symfony7/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"cache:clear": "symfony-cmd",
6868
"assets:install %PUBLIC_DIR%": "symfony-cmd",
6969
"importmap:install": "symfony-cmd",
70-
"ux:icons:lock tabler:eye tabler:eye-off": "symfony-cmd"
70+
"ux:icons:lock": "symfony-cmd"
7171
},
7272
"post-install-cmd": [
7373
"@auto-scripts"

demo/symfony8-php85/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"cache:clear": "symfony-cmd",
6868
"assets:install %PUBLIC_DIR%": "symfony-cmd",
6969
"importmap:install": "symfony-cmd",
70-
"ux:icons:lock tabler:eye tabler:eye-off": "symfony-cmd"
70+
"ux:icons:lock": "symfony-cmd"
7171
},
7272
"post-install-cmd": [
7373
"@auto-scripts"

demo/symfony8/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"cache:clear": "symfony-cmd",
6868
"assets:install %PUBLIC_DIR%": "symfony-cmd",
6969
"importmap:install": "symfony-cmd",
70-
"ux:icons:lock tabler:eye tabler:eye-off": "symfony-cmd"
70+
"ux:icons:lock": "symfony-cmd"
7171
},
7272
"post-install-cmd": [
7373
"@auto-scripts"

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Table of contents
99

1010
- [[Unreleased]](#unreleased)
11+
- [[1.2.5] - 2026-06-18](#125---2026-06-18)
1112
- [[1.2.4] - 2026-06-18](#124---2026-06-18)
1213
- [[1.2.3] - 2026-04-15](#123---2026-04-15)
1314
- [[1.2.2] - 2026-03-16](#122---2026-03-16)
@@ -19,6 +20,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1920

2021
## [Unreleased]
2122

23+
## [1.2.5] - 2026-06-18
24+
25+
### Fixed
26+
27+
- **UX Icons 3.x `ux:icons:lock`**: command accepts no icon arguments (scans Twig templates). Updated docs, demos (`auto-scripts`), recipe `post-install.txt`, `IconSupportChecker` warning message, and dev template hint. Use `php bin/console ux:icons:lock` (optional `--force`).
28+
2229
## [1.2.4] - 2026-06-18
2330

2431
### Added

docs/INSTALLATION.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This guide covers installing Password Toggle Bundle in a Symfony application.
1111

1212
```bash
1313
composer require symfony/ux-icons symfony/http-client
14-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
14+
php bin/console ux:icons:lock
1515
```
1616

1717
## Install with Composer
@@ -29,9 +29,11 @@ Use a constraint such as `^1.0` to stay on the current major version.
2929
If you use Symfony Flex, the bundle is registered automatically, configuration is created at `config/packages/nowo_password_toggle.yaml`, **symfony/ux-icons** and **symfony/http-client** are added, and tabler icons are copied under `assets/icons/tabler/`. Run after install:
3030

3131
```bash
32-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
32+
php bin/console ux:icons:lock
3333
```
3434

35+
With **UX Icons 3.x**, the command scans Twig templates (no icon names as arguments). Use `--force` to overwrite existing local SVGs.
36+
3537
### Manual registration
3638

3739
1. **Register the bundle** in `config/bundles.php`:
@@ -73,7 +75,7 @@ return [
7375
Copy tabler SVGs under `assets/icons/tabler/` (see the Flex recipe in `.symfony/recipes/.../1.2.3/assets/icons/tabler/`) or lock icons after install:
7476

7577
```bash
76-
php bin/console ux:icons:lock tabler:eye tabler:eye-off
78+
php bin/console ux:icons:lock
7779
```
7880

7981
4. **Create configuration** (optional). Create `config/packages/nowo_password_toggle.yaml` with your preferred defaults. See [CONFIGURATION.md](CONFIGURATION.md) for all options.
@@ -88,7 +90,7 @@ If `symfony/ux-icons` or `symfony/http-client` is not installed:
8890
- **dev**: toggle works; a small `[icons missing]` hint is shown instead of icons.
8991
- **prod**: toggle works without icons (no uncaught exception from `ux_icon()`).
9092

91-
To restore icons, install both packages and run `php bin/console ux:icons:lock tabler:eye tabler:eye-off`, or override the form theme to avoid `ux_icon()`.
93+
To restore icons, install both packages and run `php bin/console ux:icons:lock`, or override the form theme to avoid `ux_icon()`.
9294

9395
## Next steps
9496

0 commit comments

Comments
 (0)