Last active
May 5, 2016 19:32
-
-
Save ABM-Dan/aa7bf02f2e350357157d2f87cb9d6a14 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 | |
/** | |
* Get service. | |
*/ | |
public function getService() | |
{ | |
if (null === $this->service) { | |
$this->service = $this->container->get($this->serviceName); | |
} | |
return $this->service; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment