uwem / objref-examplebundle
dev-master
2016-03-20 13:07 UTC
Requires
- uwem/objref-remotebundle: dev-master
This package is not auto-updated.
Last update: 2020-01-08 02:05:41 UTC
README
这是一个示例symfony扩展包,展示了我的 RemoteBundle,它本身也是一个symfony扩展包,用于我的 ObjRef 远程PHP对象
安装
只需在工作中的symfony安装中运行 composer require uwem/objref-examplebundle
。使用 symfony new objreftest
启动一个新实例可能是个好主意,然后要求使用examplebundle。然后在kernel中启用这些扩展包
<?php // app/AppKernel.php public function registerBundles() { $bundles = [ // ... new ObjRef\RemoteBundle\ObjRefRemoteBundle(), new ObjRef\ExampleBundle\ObjRefExampleBundle(), // ... ]; }
如果您遇到错误如 "config.platform.php" 版本 (5.5.9) 不满足该要求。
,请确保从生成的 composer.json
文件中删除 config.platform.php 部分。您还需要将 "minimum-stability" 设置为 "dev"。
运行
目前只实现了一个演示。运行 bin/console example:local
来启动两个通过ObjRef相互通信的进程。我只测试了linux,但它也应该可以在windows上正常运行。
查看 LocalCommand.php 文件以了解其工作原理