PluginProbe
Packeta / 1.2.2
Packeta v1.2.2
2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 All 55 releases
packeta / bootstrap.php

bootstrap.php in Packeta 1.2.2, at bootstrap.php

33 lines 885 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Packeta bootstrap.
4 *
5 * @package Packeta
6 */
7
8 use Packetery\Module\CompatibilityBridge;
9 use PacketeryNette\Bootstrap\Configurator;
10
11 defined( 'PACKETERY_PLUGIN_DIR' ) || define( 'PACKETERY_PLUGIN_DIR', __DIR__ );
12 defined( 'PACKETERY_DEBUG' ) || define( 'PACKETERY_DEBUG', false );
13
14 require_once __DIR__ . '/packetery_vendor/autoload.php';
15
16 $configurator = new Configurator();
17 $configurator->setDebugMode( PACKETERY_DEBUG );
18
19 if ( PACKETERY_DEBUG ) {
20 $configurator->enableDebugger( PACKETERY_PLUGIN_DIR . '/log' );
21 }
22
23 $configurator->addConfig( __DIR__ . '/config/config.neon' );
24 $configurator->setTempDirectory( __DIR__ . '/temp' );
25 $configurator->createRobotLoader()->addDirectory( __DIR__ . '/src' )->register();
26
27 $configurator->defaultExtensions = [];
28
29 $container = $configurator->createContainer();
30 CompatibilityBridge::setContainer( $container );
31
32 return $container;
33