public function registerJSVariables()
    {
        $object = json_encode($this->localizationData());

        $this->app['hook.factory']->action('wp_head', function () use ($object) {
            echo "<script>var Assely = {$object};</script>";
        })->dispatch();
    }
public function registerJSVariables()
    {
        $object = json_encode($this->localizationData());

        $this->app['hook.factory']->action('wp_head', function () use ($object) {
            echo "<script>var Assely = {$object};</script>";
        })->dispatch();
    }
public function registerJSVariables ( ) { $ object = json_encode ( $ this -> localizationData ( ) ) ; $ this -> app [ 'hook.factory' ] -> action ( 'wp_head' , function ( ) use ( $ object ) { echo "<script>var Assely = {$object};</script>" ; } ) -> dispatch ( ) ; }
Prints Assely javascript global variable.

@return void
Prints Assely javascript global variable .