This file contains hidden or 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 OpenEuropa\Site\Tests\Behat\FeatureTraits; | |
use Behat\Behat\Hook\Scope\BeforeScenarioScope; | |
use Behat\Testwork\Hook\Scope\AfterSuiteScope; | |
use Behat\Testwork\Hook\Scope\BeforeSuiteScope; | |
use Drupal\Core\Database\Database; | |
/** |
This file contains hidden or 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 OpenEuropa\Site\Tests\Behat\FeatureTraits; | |
use Behat\Behat\Hook\Scope\BeforeScenarioScope; | |
use Behat\Testwork\Hook\Scope\AfterSuiteScope; | |
use Behat\Testwork\Hook\Scope\BeforeSuiteScope; | |
/** | |
* Trait DatabaseRefreshingTrait. |
This file contains hidden or 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 OpenEuropa\Site\Tests\Behat\FeatureTraits; | |
use Behat\Behat\Hook\Scope\BeforeScenarioScope; | |
use Behat\Testwork\Hook\Scope\AfterSuiteScope; | |
use Behat\Testwork\Hook\Scope\BeforeSuiteScope; | |
/** | |
* Trait DatabaseRefreshingTrait. |
This file contains hidden or 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
" Leader key <SPACE> | |
let mapleader=" " | |
nnoremap <Space> <Nop> | |
call plug#begin('~/.config/nvim/plugged') | |
Plug 'phpactor/phpactor' , {'do': 'composer install', 'for': 'php'} | |
Plug 'ncm2/ncm2' | |
Plug 'roxma/nvim-yarp' | |
Plug 'phpactor/ncm2-phpactor' | |
Plug 'ncm2/ncm2-ultisnips' |
This file contains hidden or 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
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'tpope/vim-fugitive' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'martinda/Jenkinsfile-vim-syntax' | |
Plug 'c9s/phpunit.vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'jistr/vim-nerdtree-tabs' | |
Plug 'kien/ctrlp.vim' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'StanAngeloff/php.vim' |
This file contains hidden or 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 | |
$root = "/home/rob/Sites/"; | |
$allowed_dirs = [ | |
'web', | |
'wwwroot', | |
'build', | |
]; | |
foreach (new DirectoryIterator($root) as $main_dir) { |
This file contains hidden or 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
<FilesMatch \.php$> | |
SetHandler application/x-httpd-php | |
</FilesMatch> | |
# | |
# Set up permissions for VirtualHosts in ~/Sites | |
# | |
<Directory "/Users/rob/Sites"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny |
This file contains hidden or 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 Drupal\base\Plugin\migrate\process; | |
use Drupal\migrate\ProcessPluginBase; | |
use Drupal\migrate\MigrateExecutableInterface; | |
use Drupal\migrate\Row; | |
/** | |
* This plugin converts Drupal 7 email field to drupal 8 |