2017 © Pedro Peláez
 

symfony-bundle objref-examplebundle

image

uwem/objref-examplebundle

  • Sunday, March 20, 2016
  • by UweM
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ObjRef ExampleBundle

Example symfony bundle that shows my RemoteBundle which itself is a symfony bundle of my ObjRef remote php objects, (*1)

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:, (*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)

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., (*4)

Have a look into the LocalCommand.php file to see how it works, (*5)

The Versions

20/03 2016

dev-master

9999999-dev

  Sources   Download

Apache-2.0

The Requires