PHP code example of wusuopu / remote-dump-bundle

1. Go to this page and download the library: Download wusuopu/remote-dump-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wusuopu / remote-dump-bundle example snippets


use Wusuopu\RemoteDumpBundle\Util\DumpUtil;
DumpUtil::dump($data, $url = "http://127.0.0.1:9090/");

$this->getContainer()->get('wusuopu.remote_dump')->dump($data);

public function registerBundles()
{
    // ...
    if (in_array($this->getEnvironment(), array('dev', 'test'))) {
    // ...
        $bundles[] = new Wusuopu\RemoteDumpBundle\RemoteDumpBundle();
    }
}
yml
wusuopu_remote_dump_listener_enable: true
wusuopu_remote_dump_listener.request: true
wusuopu_remote_dump_listener.controller: true
wusuopu_remote_dump_listener.view: true
wusuopu_remote_dump_listener.response: true
wusuopu_remote_dump_listener.finish_request: true
wusuopu_remote_dump_listener.terminate: false
wusuopu_remote_dump_listener.exception: true