Skip to content

Instantly share code, notes, and snippets.

<?php
namespace App\Services\Rest\Helper;
use App\Utils\JSON;
use Symfony\Component\HttpFoundation\Request as HttpFoundationRequest;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
@ABM-Dan
ABM-Dan / xdebug.sh
Last active January 14, 2016 17:06 — forked from maurotdo/xdebug.sh
Extended version of a bash script to turn xdebug on or off, it automatically restarts php-fpm after.
#!/bin/bash
#
# Script to turn xdebug on and off
# Permission to copy and modify is granted under the MIT license
# Last revised 2014-03-07
# Mauro Maggi <maurotdo (at) gmail (dot) com>
PHP=$(which php)
XDEBUG=$($PHP -i | grep -i xdebug | grep -i enabled)
INI=$($PHP -i | grep "xdebug.ini" | tr -d ',')