projet-normandie/message-bundle

诺曼底信息包

安装: 343

依赖: 1

建议者: 0

安全: 0

星标: 2

关注者: 4

分支: 0

开放问题: 0

类型:symfony-bundle

dev-develop 2024-07-25 15:17 UTC

This package is auto-updated.

Last update: 2024-09-05 10:29:47 UTC


README

开发

Scrutinizer Code Quality Build Status

安装

确保全局已安装 Composer,如 Composer 文档中的安装章节所述。

使用 Symfony Flex 的应用程序

打开命令行控制台,进入您的项目目录,然后执行

$ composer require projet-normandie/message-bundle

不使用 Symfony Flex 的应用程序

步骤 1:下载包

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

$ composer require projet-normandie/message-bundle

步骤 2:启用包

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

// config/bundles.php

return [
    // ...
    ProjetNormandie\MessageBundle\ProjetNormandieMessageBundle::class => ['all' => true],
];

配置

数据库

为了将您的用户实体链接到此模块,您应添加以下配置:(将 AppBundle\Entity\User 替换为您的用户类)。

官方文档

# Doctrine Configuration - config.yml
doctrine:
    orm:
        resolve_target_entities:
            ProjetNormandie\MessageBundle\Entity\UserInterface: AppBundle\Entity\User

在解决实体后,您可以更新数据库模式。