This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enable/Disable phpmyadmin on the server" | |
if [ "$#" -ne 1 ];then | |
echo "Usage pma.sh [up|down]" | |
exit 0 | |
fi | |
if [ "$1" = "up" ];then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$f = require_once('/var/www/myproject/vendors/FirePHPCore-0.3.2/lib/FirePHPCore/FirePHP.class.php'); | |
$f = FirePHP::getInstance(true); | |
$f->fb('Hello FirePHP console', FirePHP::INFO); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyContext extends \Behat\Behat\Context\BehatContext{ | |
...... | |
/** | |
* Allows to fill in a tinyMCE rich text textarea by disabling the control | |
* | |
* @Given /^I fill in rich text editor "([^"]*)" with "([^"]*)"$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace AppBundle\Command; | |
use Doctrine\DBAL\Connection; | |
use Doctrine\ORM\EntityManager; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | |
use Symfony\Component\Console\Input\InputInterface; | |
use Symfony\Component\Console\Output\OutputInterface; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
add() | |
{ | |
sed -i '1 s/<?php/<?php\ | |
declare(strict_types=1);/g' $1 | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config xdebug PHP | |
------------------------ | |
xdebug.remote_enable=1 | |
xdebug.remote_host=127.0.0.1 | |
xdebug.remote_connect_back=1 | |
xdebug.remote_port="9000" | |
xdebug.idekey="PHPSTORM" | |
xdebug.remote_log=/tmp/xdebug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; | |
class ExportController extends AbstractController | |
{ | |
/** | |
* @Route("/export",name="export_route") |