-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/core-2347-persistent-quote' into feature/core-2…
…347-multi-cart
- Loading branch information
Showing
2 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} |