BEdita API doc | 4-cactus
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Download

Namespaces

  • BEdita
    • API
      • Auth
      • Controller
        • Admin
        • Component
        • Model
      • Error
      • Event
      • Exception
      • Middleware
      • Model
        • Action
      • Network
        • Exception
      • Shell
      • TestSuite
      • Utility
    • Core
      • Configure
        • Engine
      • Database
        • Type
      • Exception
      • Filesystem
        • Adapter
        • Exception
        • Thumbnail
      • I18n
      • Job
        • Service
      • Mailer
        • Preview
        • Transport
      • Model
        • Action
        • Behavior
        • Entity
        • Table
        • Validation
      • ORM
        • Inheritance
        • Locator
        • Rule
      • Shell
        • Task
      • State
      • TestSuite
        • Fixture
      • Utility

Classes

  • ServiceRegistry

Interfaces

  • JobService

Class ServiceRegistry

Utility class to run async job services.

Namespace: BEdita\Core\Job
Since: 4.0.0
Located at Core/src/Job/ServiceRegistry.php

Methods summary

public static BEdita\Core\Job\JobService
# get( string $name )

Get a service class instance for a given name.

Get a service class instance for a given name.

If no service with supplied name was registered a corresponding class in plugins and core in 'Service' namespace is searched. Example: - service $name = 'example', look for class \MyPlugin\Service\Example and then for \BEdita\Core\Service\Example

Parameters

$name
The service name you want to get.

Returns

BEdita\Core\Job\JobService
Service instance found

Throws

LogicException
Throws an exception if no suitable class for that service could be found.
public static
# set( string $name, BEdita\Core\Job\JobService $instance )

Set service class instance for a service.

Set service class instance for a service.

Parameters

$name
The service name you want to register.
$instance
The instance object to be registered.
public static
# reset( )

Reset registered service instances

Reset registered service instances

Properties summary

protected static BEdita\Core\Job\JobService[] $instances

Registered instances.

Registered instances.

# []
BEdita API doc | 4-cactus API documentation generated by ApiGen