class ProjectExtension in Zircon Profile 8
Same name and namespace in other branches
Hierarchy
- class \ProjectExtension implements ExtensionInterface
Expanded class hierarchy of ProjectExtension
File
- vendor/
symfony/ dependency-injection/ Tests/ Fixtures/ includes/ ProjectExtension.php, line 7
View source
class ProjectExtension implements ExtensionInterface {
public function load(array $configs, ContainerBuilder $configuration) {
$config = call_user_func_array('array_merge', $configs);
$configuration
->setDefinition('project.service.bar', new Definition('FooClass'));
$configuration
->setParameter('project.parameter.bar', isset($config['foo']) ? $config['foo'] : 'foobar');
$configuration
->setDefinition('project.service.foo', new Definition('FooClass'));
$configuration
->setParameter('project.parameter.foo', isset($config['foo']) ? $config['foo'] : 'foobar');
return $configuration;
}
public function getXsdValidationBasePath() {
return false;
}
public function getNamespace() {
return 'http://www.example.com/schema/project';
}
public function getAlias() {
return 'project';
}
public function getConfiguration(array $config, ContainerBuilder $container) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ProjectExtension:: |
public | function |
Returns the recommended alias to use in XML. Overrides ExtensionInterface:: |
1 |
ProjectExtension:: |
public | function | ||
ProjectExtension:: |
public | function |
Returns the namespace to be used for this extension (XML namespace). Overrides ExtensionInterface:: |
1 |
ProjectExtension:: |
public | function |
Returns the base path for the XSD files. Overrides ExtensionInterface:: |
1 |
ProjectExtension:: |
public | function |
Loads a specific configuration. Overrides ExtensionInterface:: |