interne/seancebundle

Net BS Intranet 的 Séance Bundle

安装: 330

依赖项: 0

建议者: 0

安全性: 0

星级: 2

关注者: 5

分支: 0

开放问题: 0

类型:symfony-bundle

dev-master 2016-12-04 15:37 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:42:18 UTC


README

SéanceBundle 的 Symfony 管理器

预 requisites

安装

cd path/to/symfony
# installer le bundle
composer require interne/seancebundle --prefer-dist dev-stable
# installer les bundle de dépendences
composer require jms/serializer-bundle friendsofsymfony/jsrouting-bundle friendsofsymfony/rest-bundle ensepar/html2pdf-bundle
composer require symfony/assetic-bundle # symfony >= 2.8

如果您想使用默认的 Angular 前端

cd path/to/seance/bundle # vendor/interne/seancebundle si installé via composer
bower install # charger les dépendances pour angular
npm install # installer les dépendances grunt
grunt build # générer les fichiers angular minifiés

配置

重要

目前仅适用于 'dev-master'

在应用程序中注册 bundle 路由

# app/config/routing.yml

seance_api:
    type:     rest
    resource: "@InterneSeanceBundle/Resources/config/routing_rest.yml"
    prefix:   /seance-api
    options:
        expose: true

seance:
    resource: "@InterneSeanceBundle/Resources/config/routing.yml"
    prefix:   /seance


在配置中注册 bundle 服务

# app/config/config.yml

imports:
    # ...
    - { resource: "@InterneSeanceBundle/Resources/config/services.yml" }


assetic:
    # ...
    bundles:
        # ...
        - InterneSeanceBundle


fos_rest:
    body_listener: true
    routing_loader:
        default_format: json
        include_format: false

# PDF Exports
ensepar_html2pdf:
    orientation: P
    format: A4
    lang: fr
    unicode: true
    encoding: UTF-8
    margin: [10,15,10,15]

更新从 Symfony kernel 加载的 bundles

# /app/AppKernel.php

    $bundles = array (
        // ...
        new Interne\SeanceBundle\InterneSeanceBundle(),

        // Si pas encore activés :
        new Ensepar\Html2pdfBundle\EnseparHtml2pdfBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
        new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
        new FOS\RestBundle\FOSRestBundle(),
        new Symfony\Bundle\AsseticBundle\AsseticBundle(),
    );

生成数据库表

php app/console doctrine:schema:update --force

使用的技术

查看 composer.json, bower.json 和 package.json 文件以获取使用的模块详细信息。