sympress/maker-bundle
Composer 安装命令:
composer require sympress/maker-bundle
包简介
Package-aware Symfony MakerBundle integration for SymPress website workspaces.
README 文档
README
Package-aware integration for symfony/maker-bundle in SymPress website workspaces.
Installation
composer require --dev sympress/maker-bundle
The bundle imports Symfony MakerBundle's own services and maker registrations, then replaces the MakerBundle autoload resolver with a resolver that understands the local packages/* workspace and Composer-installed packages.
That keeps the MakerBundle command surface intact while letting generated PHP classes land in the package that owns their namespace:
./bin/console make:command 'Brianvarskonst\Theme\Command\RebuildEditorialIndexCommand' ./bin/console make:validator 'Brianvarskonst\Booking\Validator\BookingSlot'
If a command receives a fully-qualified class name, the resolver maps the longest matching PSR-4 namespace prefix to its package path.
MakerBundle code paths that use Symfony's newer ClassData API, such as controllers and validators, are normalized to the same package-aware namespace rules.
Project-specific makers:
./bin/console make:sympress-package sympress/example ./bin/console make:sympress-package sympress/framework-addon --type=library ./bin/console make:sympress-package sympress/contracts --type=package ./bin/console make:sympress-package sympress/bootstrap --type=wordpress-mu-plugin ./bin/console make:sympress-package brianvarskonst/site-theme --type=wordpress-theme ./bin/console make:hook 'Brianvarskonst\Theme\Hook\ExampleHook' --hook init ./bin/console make:block 'Brianvarskonst\Booking\Block\ExampleBlock' ./bin/console make:config-loader brianvarskonst/booking ./bin/console make:asset-entry brianvarskonst/booking frontend --location=frontend ./bin/console make:data-provider 'Brianvarskonst\Theme\DataProvider\Templating\ExampleDataProvider'
make:sympress-package mirrors the package types already used in this workspace:
library creates a kernel bundle library with a package-name entry, package creates a
plain contracts/utility package without kernel metadata, wordpress-plugin and
wordpress-muplugin create WordPress entry files, and wordpress-theme creates a
theme bundle with functions.php and style.css. The human-friendly
wordpress-mu-plugin alias is normalized to Composer's wordpress-muplugin type.
Optional configuration:
sympress_maker: root_namespace: 'Brianvarskonst\Theme' entity_namespace: 'Brianvarskonst\Theme\Entity' generate_final_classes: true generate_final_entities: false
Without explicit configuration, the bundle prefers the first WordPress theme namespace as the MakerBundle root namespace and falls back to the first discovered production PSR-4 namespace.
Development
composer install composer tests composer cs
The package repository ships its own QA workflow. Organization-wide issue
templates and community defaults are provided by the SymPress .github
repository.
License
This package is licensed under GPL-2.0-or-later.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-06-14