diff --git a/composer.json b/composer.json index f8294e0..5d83b52 100644 --- a/composer.json +++ b/composer.json @@ -4,20 +4,19 @@ "license": "proprietary", "require": { "php": ">=7.1", + "spryker/application": "^3.8.0", "spryker/kernel": "^3.16.0", "spryker/silex": "^2.0.0", "spryker/storage": "^3.4.0", "spryker/util-text": "^1.2.0" }, "require-dev": { - "spryker/application": "*", "spryker/config": "*", "spryker/log": "*", "spryker/symfony": "*", "spryker/twig": "*" }, "suggest": { - "spryker/application": "TODO: add suggestion description", "spryker/config": "TODO: add suggestion description", "spryker/log": "TODO: add suggestion description", "spryker/symfony": "TODO: add suggestion description", diff --git a/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php b/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php new file mode 100644 index 0000000..93566ae --- /dev/null +++ b/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php @@ -0,0 +1,57 @@ +application = new Application(); + $this->config = new ApplicationConfig(); + } + + /** + * @return \Spryker\Yves\Kernel\Application + */ + public function boot() + { + $this->registerServiceProviders(); + $this->registerRouters(); + $this->registerControllerProviders(); + + return $this->application; + } + + /** + * @return void + */ + abstract protected function registerServiceProviders(); + + /** + * @return void + */ + abstract protected function registerRouters(); + + /** + * @return void + */ + abstract protected function registerControllerProviders(); +}