Language

class Language extends Constraint Constants DEFAULT_GROUP The name of the group given to all constraints with no explicit group. CLASS_CONSTRAINT Marks a constraint that can be put onto classes. PROPERTY_CONSTRAINT Marks a constraint that can be put onto properties. NO_SUCH_LANGUAGE_ERROR Properties mixed $payload Domain-specific data attached to a constraint. from Constraint array $groups The groups that the constraint belongs to from Constraint $message Methods sta

KernelTestCase

class KernelTestCase extends PHPUnit_Framework_TestCase KernelTestCase is the base class for tests needing a Kernel.

KernelInterface::shutdown()

shutdown() Shutdowns the kernel. This method is mainly useful when doing functional testing.

KernelInterface::registerContainerConfiguration()

registerContainerConfiguration(LoaderInterface $loader) Loads the container configuration. Parameters LoaderInterface $loader A LoaderInterface instance

KernelInterface::registerBundles()

BundleInterface[] registerBundles() Returns an array of bundles to register. Return Value BundleInterface[] An array of bundle instances

KernelInterface::locateResource()

string|array locateResource(string $name, string $dir = null, bool $first = true) Returns the file path for a given resource. A Resource can be a file or a directory. The resource name must follow the following pattern: "@BundleName/path/to/a/file.something" where BundleName is the name of the bundle and the remaining part is the relative path in the bundle. If $dir is passed, and the first segment of the path is "Resources", this method will look for a file named: $dir/<Bund

KernelInterface::isDebug()

bool isDebug() Checks if debug mode is enabled. Return Value bool true if debug mode is enabled, false otherwise

KernelInterface::getStartTime()

int getStartTime() Gets the request start time (not available if debug is disabled). Return Value int The request start timestamp

KernelInterface::getRootDir()

string getRootDir() Gets the application root dir. Return Value string The application root dir

KernelInterface::getName()

string getName() Gets the name of the kernel. Return Value string The kernel name