opensoft / opensoft-epl-bundle
OpensoftEplBundle 是 opensoft/epl 库的包装器
2.0.0
2018-01-23 15:49 UTC
Requires
- php: ^5.5.9|>=7.0.8
- opensoft/epl: >=1.0.0
- symfony/framework-bundle: ^3.3
This package is not auto-updated.
Last update: 2024-09-14 14:45:06 UTC
README
安装
将此包添加到您的项目中
使用 composer
php composer.phar require opensoft/opensoft-epl-bundle
使用 vendors 脚本
在您的 deps 文件中添加以下行
[OpensoftEplBundle]
git=git://github.com/opensoft/OpensoftEplBundle.git
target=bundles/Opensoft/EplBundle
[epl]
git=http://github.com/opensoft/epl.git
运行 vendors 脚本
$ php bin/vendors install
使用 Git 子模块
$ git submodule add git://github.com/opensoft/OpensoftEplBundle.git vendor/bundles/Opensoft/EplBundle
将 EPL 命名空间添加到您的自动加载器
<?php // app/autoload.php $loader->registerNamespaces(array( 'Epl' => __DIR__.'/../vendor/epl/src', 'Opensoft' => __DIR__.'/../vendor/bundles', // your other namespaces ));
将此包添加到应用程序的内核
<?php // app/AppKernel.php public function registerBundles() { return array( // ... new Opensoft\EplBundle\OpensoftEplBundle(), // ... ); }
文档和配置
这是 epl 库的简单配置包。提供两个配置参数。
opensoft_epl: composite: Epl\CommandComposite # implements Epl\CommandCompositeInterface helper: Epl\CommandHelper # implements Epl\CommandHelperInterface
许可协议
见 Resources/meta/LICENSE
。
原作者
- Petrov Dmitry 为主要作者。