spiroski/domain-events-bundle

与spiroski/domain-events集成的包

0.1.0 2019-01-29 19:24 UTC

This package is auto-updated.

Last update: 2024-09-29 04:49:05 UTC


README

使用Symfony Flex的应用程序

打开命令行控制台,进入你的项目目录并执行

$ composer require spiroski/domain-events-bundle

不使用Symfony Flex的应用程序

步骤 1: 下载包

打开命令行控制台,进入你的项目目录并执行以下命令以下载此包的最新稳定版本

$ composer require spiroski/domain-events-bundle

此命令要求你全局安装了Composer,具体请参考Composer文档中的安装章节

步骤 2: 启用包

然后,通过将其添加到项目app/AppKernel.php文件中注册的包列表中来启用该包。

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Spiroski\Domain\Events\Bundle\SpiroskiDomainEventsBundle(),
        ];

        // ...
    }

    // ...
}