Has service initialized ?

@param  mixed $args Arguments which was service initialized
@return bool
166280
public function hasInitialized($args = null) {
		if ($args === null) {
			return $this->service !== null;
		}
		
		$args = $this->normalizeArgs($args);
		$id   = $this->getIdByArgs($args);
		
		return isset($this->servicesByArgs[$id]);
	}
314805
public function validate($args)
    {
        $check = $this->normalizeArgs(is_array($args) ? $args : []);

        return is_array($check) ? true : $check;
    }
274614
public function handleInstall(Args $args)
    {
        $moduleName = $args->getArgument('name');
        $installPath = Path::makeAbsolute($args->getArgument('path'), getcwd());
        $installer = $args->getOption('installer');
        $env = $args->isOptionSet('dev') ? Environment::DEV : Environment::PROD;

        $this->moduleManager->installModule($installPath, $moduleName, $installer, $env);

        return 0;
    }
1234549
public function process(...$args): bool
    {
        foreach ($this->registry as $callback) {
            if (call_user_func_array($callback, $args) === false) {
                return false;
            }
        }

        return true;
    }
255167
public function hasService($name)
    {
        if (!$this->serviceManager) {
            return false;
        }

        return $this->serviceManager->has($name, false);
    }
915669
public function hasService($type) {
        if (!isset($this->services[$type])) {
            if (!file_exists(__DIR__.'/'.$type.'/Service.php')) {
				return false;
			}
        }

        return true;
    }
183885
protected function log(Args $args)
    {
        $message = sprintf("%s%s", $this->render($args), PHP_EOL);
        $this->logger->log($message, null, $this->registry->get());
    }
1371595
private function checkCredentials(array $args = []): bool
    {
        if (empty($args['credentials'])) {
            throw new DorcasException('You did not provide the Dorcas client credentials in the configuration.', $args);
        }
        $id = data_get($args, 'credentials.id', null);
        $secret = data_get($args, 'credentials.secret', null);
        if (empty($id)) {
            throw new DorcasException('The client "id" key is absent in the credentials configuration.', $args);
        }
        if (empty($secret)) {
            throw new DorcasException('The client "secret" key is absent in the credentials configuration.', $args);
        }
        return true;
    }
609749
public function with($args){

        $service = array_shift($args);

        $method = array_shift($args);

        var_dump(\App::handle($service,$method,$args));

    }
466606
public static function Contains( $arg1, $arg2 )
	{
		$str = $arg1 instanceof Undefined
		    ? ""
		    : $arg1 . "";

		$substr = $arg2 instanceof Undefined
			? ""
			: $arg2 . "";

		return strpos( $str, $substr ) !== false;
	}
1127345
public function register($name, $service, $args = [], $isParam = false)
    {
        if (!$isParam && !$this->hasService($name)) {
            $this->registeredList['services'][$name] = [
                'class' => $service,
                'arguments' => $args,
            ];

            return true;
        } elseif ($isParam && !$this->hasParam($name)) {
            $this->registeredList['params'][$name] = $service;

            return true;
        }

        return false;
    }
1191321
public function has($name, $checkAbstractFactories = true, $usePeeringServiceManagers = true)
    {
        if (is_array($name)) {
            $name = $name[1];
        }

        if (strpos($name, '://') === false) {
            return false;
        }

        list($manager, $service) = explode('://', $name, 2);
        if (!$manager || !$service) {
            return false;
        }

        $parent = $this->getParentLocator();
        $services = ($parent->has($manager, false, false))? $parent->get($manager) : false;
        return (($services instanceof ServiceLocatorInterface)
            && $services->has($service));
    }
1253617
public function reset($args = null) {
		if ($args === null) {
			$this->service = null;
			return;
		}
		
		$args = $this->normalizeArgs($args);
		$id   = $this->getIdByArgs($args);
		
		unset($this->servicesByArgs[$id]);
	}
424487
public static function getInstance(...$args)
    {
        $class = static::class;

        if (empty(static::$instances[$class])) {
            static::$instances[$class] = Ioc::getContainer()->newInstance($class, ...$args);
        }

        return static::$instances[$class];
    }
555774
protected function initService($id, array $args = null) {
		$method = sprintf($this->methodNameTemplate, lcfirst($id));
		
		if (! method_exists($this, $method)) {
			throw new Exceptions\ServiceNotFound('Unable to found the service "' . $id . '"');
		}
		
		if ($args === null) {
			return $this->$method();
		}
		
		return call_user_func_array([$this, $method], $args);
	}
1011792
public function dumpToServer(...$args): bool
    {
        $values = $this->handleValues($args);

        $data = (new VarCloner())->cloneVar($values);

        return $this->connection->write($data);
    }
286001
protected function initService(array $args = null) {
		if ($args === null) {
			return call_user_func($this->callback);
		}
		
		return call_user_func_array($this->callback, $args);
	}