adrienlbt/hexagonal-maker-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

adrienlbt/hexagonal-maker-bundle

最新稳定版本:1.2.0

Composer 安装命令:

composer require adrienlbt/hexagonal-maker-bundle

包简介

Hexagonal Maker bundle add commands to Symfony Maker bundle to help you to create files for hexagonal architecture.

README 文档

README

The Hexagonal Maker Bundle is a code generator, for Symfony, who automise the use case creation process for the Hexagonal Architecture. It's use the Symfony's Maker Bundle.

⚙️Install

Add the bundle with composer

composer require --dev adrienlbt/hexagonal-maker-bundle

If Symfony Flex doesn't add automatically the bundle, active it manually:

// config/bundles.php
return [
    // ...
    AdrienLbt\HexagonalMakerBundle\HexagonalMakerBundle::class => ['dev' => true]
];

⚙️Configure

If Symfony Flew doesn't create config file automaticallly, create it manually:

# config/packages/hexagonal_maker_bundle.yaml
hexagonal_maker:
  application_path: 'Application'
  domain_path: 'Domain'
  infrastructure_path: 'Infrastructure'

Override namespace

Actually (and for this first version), we duplicate the code of Symfony's Maker Bundle. For use our command we need to override the namespace for use our implementation of generator. For this you can run the following command:

bin/console make:hexagonal:dump-autoload

The result of this command, add namespace overiding in your composer.json file.

// composer.json
{
    ...,
    "autoload": {
        "psr-4": {
            ...,
            "Symfony\\Bundle\\MakerBundle\\": "vendor/adrienlbt/hexagonal-maker-bundle/src/Maker/Decorator/"
        }
    }
}

Usage

Create Use Case

Run command like follow and follow instructions.

bin/console make:hexagonal:usecase

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-11