hopeter1018 / service-helper-bundle
1.0.3
2020-10-16 02:46 UTC
Requires
- php: >=5.5.9
- danielstjules/stringy: ^3.1
This package is auto-updated.
Last update: 2025-03-16 12:44:45 UTC
README
Introduction
This bundle aims to generate service registry structure
Installation
Require the package
composer require hopeter1018/service-helper-bundle
Add to kernel
Symfony 4+ or Symfony Flex
Add /config/bundles.php
return [ ..., HoPeter1018\ServiceHelperBundle\HoPeter1018ServiceHelperBundle::class => ['all' => true], ];
Symfony 2+
Add /app/AppKernel.php
$bundles = [ ..., new HoPeter1018\ServiceHelperBundle\HoPeter1018ServiceHelperBundle(), ];
Config
- No config required in this moment
Dependencies
- Global command
php-cs-fixer
required during comand execution
Usage
Command
hopeter1018:service-helper:generate-registry
- Generate:
- registry class php
- service interface php
- CompilerPass php
- service xml
- Register:
- in *Bundle.php
- in *Extension.php