PHP code example of ekino / drupal-debug
1. Go to this page and download the library: Download ekino/drupal-debug library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ekino / drupal-debug example snippets
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* All Drupal code is released under the GNU General Public License.
* See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
*/
use Ekino\Drupal\Debug\Kernel\DebugKernel;
use Ekino\Drupal\Debug\Option\OptionsStackBuilder;
use Ekino\Drupal\Debug\Resource\Model\ResourcesCollection;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\HttpFoundation\Request;
$optionsStack = OptionsStackBuilder::create()
->setDisplayPrettyExceptionsOptions('utf-8', 'phpstorm://open?file=%%f&line=%%l', NULL)
->setWatchContainerDefinitionsOptions('/tmp/container_definition.php', new ResourcesCollection([
new FileResource('/var/www/my_drupal_project/web/modules/custom_module/custom_module.services.yml'),
]))
->getOptionsStack();
$autoloader =