Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @file
- * The PHP page that serves all page requests on a Drupal installation.
- *
- * The routines here dispatch control to the appropriate handler, which then
- * prints the appropriate page.
- *
- * All Drupal code is released under the GNU General Public License.
- * See COPYRIGHT.txt and LICENSE.txt files in the "core" directory.
- */
- /**
- * Root directory of Drupal installation.
- */
- define('DRUPAL_ROOT', getcwd());
- require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc';
- // Include and activate the class loader.
- $loader = drupal_classloader();
- // Register explicit vendor namespaces.
- $loader->registerNamespaces(array(
- // All Symfony-borrowed code lives in /core/includes/Symfony.
- 'Symfony' => DRUPAL_ROOT . '/core/includes',
- ));
- // Register the Drupal namespace for classes in core as a fallback.
- // This allows to register additional namespaces within the Drupal namespace
- // (e.g., for modules) and avoids an additional file_exists() on the Drupal
- // core namespace, since the class loader can already determine the best
- // namespace match based on a string comparison. It further allows modules to
- // register/overload namespaces in Drupal core.
- $loader->registerNamespaceFallbacks(array(
- // All Drupal-namespaced code in core lives in /core/includes/Drupal.
- 'Drupal' => DRUPAL_ROOT . '/core/includes',
- ));
- // Register the Pimple Prefix.
- $loader->registerPrefix('Pimple', DRUPAL_ROOT . '/core/includes');
- drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
- $container = drupal_container();
- $container['kernel']->send();
Advertisement
Add Comment
Please, Sign In to add comment