Skip to content

UweM/ObjRef-ExampleBundle

Repository files navigation

ObjRef ExampleBundle

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages