Sets services

@param string[] $services services array

@return $this
968717
public function setServices($services)
    {
        $allowedValues = $this->getServicesAllowableValues();
        if (array_diff($services, $allowedValues)) {
            throw new \InvalidArgumentException(
                sprintf(
                    "Invalid value for 'services', must be one of '%s'",
                    implode("', '", $allowedValues)
                )
            );
        }
        $this->container['services'] = $services;

        return $this;
    }
345056
public function setFilters(array $filters)
    {
        if (empty($filters)) {
            return $this->clearFilters();
        }

        session()->put($this->getSessionKey(static::TYPE_FILTERS), $filters);

        return $this;
    }
1199824
function withScoped(array $services) {
        foreach ($services as $method => $type) {
            $this->bind($method, $type, self::SCOPED);
        }
        return $this;
    }
1166458
public function filters(array $filters)
    {

        foreach ($filters as $name => $options) {
            $this->filter($name, $options);
        }

        return $this;
    }
136510
public function registerServiceProvider(array $services = []) : Application
    {
        foreach ($services as $key => $serviceProvider) {
            $this->createProvider($serviceProvider)->register($this->container);
        }

        return $this;
    }
1348848
public function set(array $parameters)
    {
        foreach ($parameters as $parameter => $value) {
            $this->add($parameter, $value);
        }
        return $this;
    }
574863
public function setResources(array $resources) {
		$this->resetResources();
		
		foreach ($resources as $resource) {
			$this->appendResource($resource);
		}
		
		return $this;
	}
1179410
public function setService()
    {
        $serviceData = $this->getConfig('service.' . $this->service);
        foreach ($serviceData as $key => $value) {
            Arr::set($this->serviceData, $key, $value);
        }
        Arr::forget($this->configData,'service');
        return $this;
    }
1148517
public function setService(\Flowcode\ShopBundle\Entity\Service $service = null)
    {
        $this->service = $service;

        return $this;
    }
1112992
public function setService($service)
    {
        $prefix = $this->getConfig('service_class_prefix');

        $this->service[$service] = $this->createInstance($service, $prefix, [$this->client]);
    }
366584
public function setService($name, $service)
    {
        $this->services[$name] = $service;
        $this->serviceConfiguration[$name]['persistent'] = true;
        return $this;
    }
178573
public function setFilters($filters)
    {
        $this->filters = Collection::make($filters);
        foreach ($this->filters as $filterConfig) {
            $filterConfig->attach($this);
        }

        return $this;
    }
1183026
public function setServiceDatum($service, $key, $value)
    {
        $this->servicesData[$service][$key] = $value;

        return $this;
    }
1315997
public function set(array $values)
    {
        $this->decoded = array_merge($this->decoded, $values);

        $this->value = json_encode($this->decoded);

        return $this;
    }
539560
public function applyFromArray($filters)
    {
        foreach ($filters as $key => $value)
        {
            $filter = $this->factory->get('filter')->make(is_callable($value) ? $key : $value)->setResource($this);

            is_callable($value) and call_user_func($value, $filter);

            $this->filters[$filter->getFilter()] = $filter;
        }

        return $this;
    }
1256303
public function setRuntimeServices($runtimeServices)
    {
        if (!in_array(gettype($runtimeServices), ['array', 'object'])) {
            throw new \InvalidArgumentException("The service provider list must be an array or an object, given " . gettype($runtimeServices));
        }

        $this->runtimeServices = array_merge($this->runtimeServices, (new Model($runtimeServices))->toArray());
    }
637
public function setFilters($filters)
    {
        if (! is_array($filters))
            $filters = [$filters];

        $this->filters = array_unique(array_merge($this->filters, $filters));

        return $this;
    }