Skip to content

Commit

Permalink
Merge branch 'feature/core-2347-persistent-quote' into feature/core-2…
Browse files Browse the repository at this point in the history
…347-multi-cart
  • Loading branch information
tamasnyulas committed Mar 26, 2018
2 parents bfe4614 + f273e09 commit 83b442f
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 2 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
57 changes: 57 additions & 0 deletions src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?php

/**
* Copyright © 2016-present Spryker Systems GmbH. All rights reserved.
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace SprykerShop\Yves\ShopApplication;

use Spryker\Yves\Application\ApplicationConfig;
use Spryker\Yves\Kernel\Application;

abstract class YvesBootstrap
{
/**
* @var \Spryker\Yves\Kernel\Application
*/
protected $application;

/**
* @var \Spryker\Yves\Application\ApplicationConfig
*/
protected $config;

public function __construct()
{
$this->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();
}

0 comments on commit 83b442f

Please sign in to comment.