Skip to content

feat!: make chandler composer dependency - #1718

Merged
WerySkok merged 35 commits into
masterfrom
restructurisation
Aug 8, 2026
Merged

feat!: make chandler composer dependency#1718
WerySkok merged 35 commits into
masterfrom
restructurisation

Conversation

@WerySkok

@WerySkok WerySkok commented Jul 29, 2026

Copy link
Copy Markdown
Member

НАСТОЯЩИЙ МАТЕРИАЛ (ИСХОДНЫЙ КОД) СОЗДАН И (ИЛИ) ОТРЕДАКТИРОВАН ПРИ УЧАСТИИ ИИ-АГЕНТА И (ИЛИ) КАСАЕТСЯ ДЕЯТЕЛЬНОСТИ ТАКОГО ИИ-АГЕНТА

Мержить после аналогичного PR в Chandler и его публикации в Packagist.

Меняет структуру установки местами. Раньше нужно было ставить Chandler, а внутри него OpenVK как расширение. Теперь OpenVK становится главным — теперь достаточно установить OpenVK, а Chandler, как и остальные зависимости, теперь ставится через Composer.

Я нагенерил. Вроде локальный инстанс работает. Решение назревало давно, но есть один слабый момент — миграция. Нужно будет вытащить папку OpenVK наружу и применить все изменения. Вроде нейронка нагенерила мне скрипт для миграции, вроде работает.

Если будете тестить в виртуалке — делайте снапшот, чтобы можно было откатиться)

Особенности:

  • htdocs теперь хранится в этом репозитории
  • конфиг chandler перенесён из chandler.yml в подраздел в openvk.yml

Планы:

  • Написать инструкцию по миграции.

@veselcraft veselcraft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да вроде адекватно выглядит

Comment thread bin/upgrade-structure.php
Comment thread CLI/CleanupPendingUploadsCommand.php
Comment thread bootstrap.php
Comment thread ovk-init.php
Comment thread README_RU.md
WerySkok added a commit to OpenVK/chandler that referenced this pull request Aug 8, 2026
> НАСТОЯЩИЙ МАТЕРИАЛ (ИСХОДНЫЙ КОД) СОЗДАН И (ИЛИ) ОТРЕДАКТИРОВАН ПРИ УЧАСТИИ ИИ-АГЕНТА И (ИЛИ) КАСАЕТСЯ ДЕЯТЕЛЬНОСТИ ТАКОГО ИИ-АГЕНТА

Resolves #17. Мержить синхронно с аналогичным PR в OpenVK.

Я нагенерил. Особенности:
- Extensions В С Ё 
- CommitCaptcha перенесена внутрь (с заменой шрифта с San Francisco на Inter)
- Есть пример приложения в новом формате

Скрипт миграции для OpenVK был создан в OpenVK/openvk#1718
WerySkok added 20 commits August 8, 2026 16:49
- Replace 500-line auto-bootstrap with explicit bootstrap_openvk() function
- Move helper functions (tr, ovk_proc_strtr, etc.) and boot closure
  to ovk-init.php (loaded by ExtensionManager as init script)
- Remove manifest.yml (no longer needed)
- Update chandler_loader.php to use new bootstrap_openvk()
- Replace deprecated  property with PHP 8 #[AsCommand] attribute
- Fix UpgradeCommand to resolve Chandler path from vendor directory
  instead of old extension directory structure
Switch from composite-repo layout to Chandler as a standard
Composer path dependency.
- Remove separate chandler.yml — settings merged into openvk.yml (chandler: section)
- Remove commitcaptcha references and chandler.example.yml
- Update all paths from /opt/chandler/extensions/available/openvk to /opt/openvk
- Update Docker build for Chandler as build context (not git clone)
- Update CI workflow for new Chandler structure
- Update install instructions in README
- Add Chandler checkout step to all CI workflows
  (analyse.yaml, build.yaml, test-screenshots.yaml)
- Replace hardcoded /opt/chandler in build-context with
  ${{ github.workspace }}/chandler from checkout
- Add build-contexts input to docker/build-push-action in build.yaml
- Make docker-compose.test.yml and docker-compose.dev.yml use
  CHANDLER_PATH env var with /opt/chandler as fallback
- Remove dead mkdir for extensions/available, extensions/enabled
  from openvk.Dockerfile
OpenVK now lives at /opt/openvk, not inside the Chandler
extensions directory. Add its own document root entry point.
- bin/upgrade-structure.php handles old→new structure migration
- Supports --extract (move OVK out of extensions/) and in-place modes
- Pre-flight checks (perms, disk space), backup with rsync, config merge,
  composer install, validation
- --dry-run and --force flags for safe operation
- Moved from Chandler repo (replaced with forwarding stub)
Use the non-resolved path for structure detection (inside extensions/)
and the real path for backup, config merge, cleanup, and validation.
- Allow --target-ovk to be a symlink pointing to the current OVK source
- Load all available autoloaders until Symfony YAML becomes available
This makes this class visible to PHPStan
@WerySkok
WerySkok force-pushed the restructurisation branch from 5460fda to 1d2a8d8 Compare August 8, 2026 13:49
@WerySkok
WerySkok marked this pull request as ready for review August 8, 2026 13:54
@WerySkok
WerySkok merged commit 80330ac into master Aug 8, 2026
9 checks passed
@WerySkok
WerySkok deleted the restructurisation branch August 8, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants