Skip to content

Instantly share code, notes, and snippets.

@ABM-Dan
Last active May 5, 2016 19:32
Show Gist options
  • Save ABM-Dan/aa7bf02f2e350357157d2f87cb9d6a14 to your computer and use it in GitHub Desktop.
Save ABM-Dan/aa7bf02f2e350357157d2f87cb9d6a14 to your computer and use it in GitHub Desktop.
<?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