for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Nucleus - XMPP Library for PHP
*
* Copyright (C) 2016, Some rights reserved.
* @author Kacper "Kadet" Donat <[email protected]>
* Contact with author:
* Xmpp: [email protected]
* E-mail: [email protected]
* From Kadet with love.
*/
namespace Kadet\Xmpp\Utils;
use Interop\Container\ContainerInterface;
trait ServiceManager
{
public function get($id)
return $this->getContainer()->get($id);
}
public function has($id)
return $this->getContainer()->has($id);
abstract protected function getContainer() : ContainerInterface;