Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| <?php | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Drupal\Core\DrupalKernel; | |
| $autoload = require __DIR__ . '/vendor/autoload.php'; | |
| $cwd = getcwd(); | |
| chdir('docroot'); | |
| $drupalKernel = DrupalKernel::createFromRequest( |
| pipeline { | |
| agent any | |
| stages { | |
| stage('Prepare') { | |
| steps { | |
| sh 'composer install' | |
| sh 'rm -rf build/api' | |
| sh 'rm -rf build/coverage' | |
| sh 'rm -rf build/logs' |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.