Example symfony bundle that shows my RemoteBundle which itself is a symfony bundle of my ObjRef remote php objects, (*1)
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:, (*2)
<?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"., (*3)
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., (*4)
Have a look into the LocalCommand.php file to see how it works, (*5)