konstantin-kuklin / handlersocket-bundle
Bundle for HandlerSocket support with Symfony
0.02
2014-07-31 18:41 UTC
Requires
- php: >=5.3.2
- doctrine/annotations: >=1.0
- konstantin-kuklin/handlersocket-library: 0.*
- symfony/symfony: >=2.2
This package is not auto-updated.
Last update: 2025-02-25 04:00:06 UTC
README
Bundle allows you to use HandlerSocket inside your Symfony2 project.
Installation
-
add to composer.json row
"konstantin-kuklin/handlersocket-bundle": "dev-master"
-
add to AppKernel.php row
new KonstantinKuklin\HandlerSocketBundle\HandlerSocketBundle()
-
add to your config file:
hs:
reader:
host: localhost
port: 9998
debug: "%kernel.debug%"
auth_key: "Password_Read1"
writer:
host: localhost
port: 9999
debug: "%kernel.debug%"
How to use
Now HS Reader and Writer are available from Symfony DI
/** @var \HS\Reader $reader */ $reader = $this->get("hs_reader"); /** @var \HS\Writer $writer */ $writer = $this->get("hs_writer");
About queries and more detailed HandlerSocket information you can read on (https://github.com/KonstantinKuklin/HandlerSocketLibrary).
How to Debug
Also HS debug information is available on symfony web console
Symfony2 web console with HS:
HS page on profiler:
HS page with detailed output information on profiler: