2017 © Pedro Peláez
 

library mcm-pusher-factory

A Magium Configuration Manager-enabled Factory that allows you to retrieve managed Pusher.com instances

image

magium/mcm-pusher-factory

A Magium Configuration Manager-enabled Factory that allows you to retrieve managed Pusher.com instances

  • Monday, May 8, 2017
  • by kschroeder
  • Repository
  • 1 Watchers
  • 0 Stars
  • 32 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Pusher Factory for the Magium Configuration Manager

If you application uses the Magium Configuration Manager you can use this module to retrieve a configured Pusher instance, both on the frontend and the backend., (*1)

Installation

composer require magium/mcm-pusher-factory

Follow the instructions at the Magium Configuration Manager GitHub link to get configured, or run the bin/magium-configuration CLI., (*2)

Backend Integration

$factory = new \Magium\Configuration\MagiumConfigurationFactory();
$config = $factory->getManager()->getConfiguration();

$pusher = Magium\ConfigurationManager\Pusher\PusherFactory::staticFactory($config);

// or

$factory = new Magium\ConfigurationManager\Pusher\PusherFactory($config);
$pusher = $factory->factory();

or configure your dependency manager to make Magium\ConfigurationManager\Pusher\PusherFactory the factory for the Pusher instance., (*3)

Frontend Integration

If you want to use the frontend integration you can use the generic view handler provided here., (*4)

getManager()->getConfiguration();
$helper = new Magium\ConfigurationManager\Pusher($config);

?>
<html>
    <head>
    <script type="text/javascript">
        var pusher = <?php echo $helper->getConnectionJavaScript(); ?>
    </script>
    </head>
</html>

The Versions

08/05 2017

dev-master

9999999-dev

A Magium Configuration Manager-enabled Factory that allows you to retrieve managed Pusher.com instances

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/05 2017

1.0.1

1.0.1.0

A Magium Configuration Manager-enabled Factory that allows you to retrieve managed Pusher.com instances

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/05 2017

1.0.0

1.0.0.0

A Magium Configuration Manager-enabled Factory that allows you to retrieve managed Pusher.com instances

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires