uwem / objref-examplebundle
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/uwem/objref-examplebundle
Requires
- uwem/objref-remotebundle: dev-master
This package is not auto-updated.
Last update: 2020-01-08 02:05:41 UTC
README
Example symfony bundle that shows my RemoteBundle which itself is a symfony bundle of my ObjRef remote php objects
Installation
Just run composer require uwem/objref-examplebundle in a working symfony installation.
It may be a good idea to just kick up a new instance with symfony new objreftest and then require the
examplebundle. Then enable the bundles in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = [ // ... new ObjRef\RemoteBundle\ObjRefRemoteBundle(), new ObjRef\ExampleBundle\ObjRefExampleBundle(), // ... ]; }
If you get errors like "config.platform.php" version (5.5.9) does not satisfy that requirement.,
make sure to remove the config.platform.php part out of the generated composer.json file. You also need
to set the "minimum-stability" to "dev".
Run
Only one demo is implemented at the moment. Run bin/console example:local to launch two processes that
talk to each other via ObjRef. I only tested this with linux, but it should also run on windows just fine.
Have a look into the LocalCommand.php file to see how it works