2018-01-08 Core

This commit is contained in:
Visman 2018-01-08 16:22:02 +07:00
parent 3e041a6bdb
commit 039b8df08b
4 changed files with 16 additions and 2 deletions

View file

@ -206,4 +206,14 @@ class Container
}
return $value;
}
/**
* @param string $name
*
* @return bool
*/
public function isInit($name)
{
return array_key_exists($name, $this->instances);
}
}

View file

@ -2,6 +2,8 @@
namespace ForkBB\Core\Exceptions;
use ForkBB\Core\Exceptions\ForkException;
class MailException extends ForkException
{
}

View file

@ -2,6 +2,8 @@
namespace ForkBB\Core\Exceptions;
class StmpException extends MailException
use ForkBB\Core\Exceptions\MailException;
class SmtpException extends MailException
{
}

View file

@ -3,7 +3,7 @@
namespace ForkBB\Core;
use ForkBB\Core\Exceptions\MailException;
use ForkBB\Core\Exceptions\StmpException;
use ForkBB\Core\Exceptions\SmtpException;
class Mail
{