Created
January 9, 2017 09:38
-
-
Save VaclavSir/2170eef3eff00c81d5f9b8a48838d092 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
abstract class Service | |
{ | |
public function doSomething() | |
{ | |
something(); | |
$this->getLogger()->log('¯\_(ツ)_/¯'); | |
} | |
abstract protected function getLogger() : ILogger; | |
} |
This file contains hidden or 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
service: | |
class: Service | |
getters: | |
getLogger: '@logger' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment