Skip to content

Commit

Permalink
Rename underscore methods to make stickler happy
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Dec 23, 2020
1 parent 86cb4d8 commit 0d736b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ServiceContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public function __construct()
parent::__construct();
$this->setupPaths($this);
$this->register(new ConfigProvider());
$this->_slimApp();
$this->_services();
$this->slimApp();
$this->services();
$this->storageDriverPdo($this);
$this->storageDriverMongoDb($this);
$this->_controllers();
$this->controllers();
}

public function boot(): void
Expand All @@ -66,7 +66,7 @@ private function setupPaths(self $app): void
}

// Create the Slim app.
protected function _slimApp(): void
private function slimApp(): void
{
$this['view'] = static function ($c) {
// Configure Twig view for slim
Expand Down Expand Up @@ -111,7 +111,7 @@ protected function _slimApp(): void
/**
* Add common service objects to the container.
*/
protected function _services(): void
private function services(): void
{
$this['searcher'] = static function ($c) {
$saver = $c['config']['save.handler'];
Expand Down Expand Up @@ -221,7 +221,7 @@ private function storageDriverMongoDb(Container $app): void
/**
* Add controllers to the DI container.
*/
protected function _controllers(): void
private function controllers(): void
{
$this['watchController'] = $this->factory(static function ($c) {
return new Controller\WatchController($c['app'], $c['searcher']);
Expand Down

0 comments on commit 0d736b6

Please sign in to comment.