Yves Bootstrapping

Edit on GitHub

Yves and Zed are both built upon the Symfony components. So most concepts about modern web frameworks are applied here as well.

In static/public/Yves/index.php, you will find the entry for the front-end application.

<?php
Environment::initialize();

$errorHandlerEnvironment = new ErrorHandlerEnvironment();
$errorHandlerEnvironment->initialize();

$bootstrap = new YvesBootstrap();
$bootstrap
    ->boot()
    ->run();

The boot() method returns an application which has the run() method that processes the request and returns a response to the browser. YvesBootstrap is responsible for building the desired application. The registration process is handled by the boot() operation.

Application plugins

The application is using application plugins that are used to add the required base functionality of your project.

<?php

namespace Pyz\Yves\ShopApplication;
// ...

class ShopApplicationDependencyProvider extends SprykerShopApplicationDependencyProvider
{

    /**
     * @return \Spryker\Shared\ApplicationExtension\Dependency\Plugin\ApplicationPluginInterface[]
     */
    protected function getApplicationPlugins(): array
    {
        return [
            new TwigApplicationPlugin(),
            new EventDispatcherApplicationPlugin(),
            // ...
        ];
    }
 
// ...