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
diff --git a/sites/default/settings.php b/sites/default/settings.php | |
index b2ce930..9d0514e 100644 | |
--- a/sites/default/settings.php | |
+++ b/sites/default/settings.php | |
@@ -611,7 +611,8 @@ | |
* The 'bootstrap_config_storage' setting needs to be a callable that returns | |
* core.services.yml. | |
*/ | |
- # $settings['bootstrap_config_storage'] = array('Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage'); | |
+$settings['bootstrap_config_storage'] = 'Drupal\Core\Config\BootstrapConfigStorageFactory::getFileStorage'; |
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 | |
// test data | |
class Foo { | |
private $a; | |
private $b; | |
function __construct($a, $b) | |
{ |
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 LazyServiceController | |
{ | |
private $container; | |
private $serviceName; | |
public function __construct(\Pimple $container, $serviceName) | |
{ | |
$this->container = $container; |
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 | |
$sites = array( | |
'sitename.com' => 'sitename.com', | |
// the first sitename.com in the file, refers to the url content in the browser's window, | |
//you may/probably should replace this with a FQDN. | |
// the second sitename.com appearing after '=>' is the directory name inside sites/ where | |
//the site files are stored. | |
); |
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 Reizwerk\TestSuiteBundle\Test; | |
use Doctrine\ODM\MongoDB\DocumentManager; | |
use Doctrine\Common\DataFixtures\Executor\MongoDBExecutor; | |
use Doctrine\Common\DataFixtures\Purger\MongoDBPurger; | |
use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
/** |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* .git/hooks/pre-commit | |
* | |
* This pre-commit hooks will check for PHP errors (lint), and make sure the | |
* code is PSR-2 compliant. | |
* | |
* Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
*/ |
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 Demo { | |
require __DIR__."/vendor/autoload.php"; | |
use Nocarrier\Hal; | |
class Resource extends Hal {} | |
class ResourceResponse |
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 Acme\UserBundle\Listener; | |
use Symfony\Component\Form\FormEvent; | |
use Symfony\Component\Form\FormEvents; | |
use Symfony\Component\Form\FormFactoryInterface; | |
use Symfony\Component\EventDispatcher\EventSubscriberInterface; | |
/** |
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 | |
function mycommands_drush_command() { | |
$items = array(); | |
$items['one-command'] = array( | |
'description' => 'A command requiring two arguments.', | |
// Declare required arguments. | |
'arguments' => array( | |
'arg1' => 'arg1 description', | |
'arg2' => 'arg2 description', |
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
sudo su | |
modprobe nfsd | |
# https://bugzilla.mozilla.org/show_bug.cgi?id=1056049#c8 | |
systemctl stop nfs-kernel-server.service | |
systemctl disable nfs-kernel-server.service | |
systemctl enable nfs-kernel-server.service | |
systemctl start nfs-kernel-server.service |
OlderNewer