Skip to content

Implement Configuration\Builder in FrameworkExtension #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
removed the need to define getNamespace() and getPath() in bundles
  • Loading branch information
fabpot committed Feb 5, 2011
commit e5403490e7ea226d19f4fb2b57bf209858caeea9
15 changes: 0 additions & 15 deletions src/Symfony/Bundle/CompatAssetsBundle/CompatAssetsBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,4 @@
*/
class CompatAssetsBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
16 changes: 0 additions & 16 deletions src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,4 @@ public function registerExtensions(ContainerBuilder $container)

$container->addCompilerPass(new RegisterEventListenersAndSubscribersPass(), PassConfig::TYPE_BEFORE_OPTIMIZATION);
}

/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class AnnotationsBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class AnnotationsBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class XmlBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class YamlBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,4 @@
*/
class DoctrineMigrationsBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
16 changes: 0 additions & 16 deletions src/Symfony/Bundle/DoctrineMongoDBBundle/DoctrineMongoDBBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,4 @@ public function registerExtensions(ContainerBuilder $container)
$container->addCompilerPass(new CreateProxyDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
$container->addCompilerPass(new CreateHydratorDirectoryPass(), PassConfig::TYPE_BEFORE_REMOVING);
}

/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class AnnotationsBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class XmlBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class YamlBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function computeTemplatePaths()
$prefix = '/Resources/views';
$templates = array();
foreach ($this->kernel->getBundles() as $name => $bundle) {
if (!is_dir($dir = $bundle->getNormalizedPath().$prefix)) {
if (!is_dir($dir = $bundle->getPath().$prefix)) {
continue;
}

Expand Down
16 changes: 0 additions & 16 deletions src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,4 @@ public function registerExtensions(ContainerBuilder $container)
$container->addCompilerPass(new TranslatorPass());
$container->addCompilerPass(new AddCacheWarmerPass());
}

/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,4 @@

class {{ bundle }} extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return strtr(__DIR__, '\\', '/');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,4 @@ public function getParent()
{
return 'SensioFooBundle';
}

/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,4 @@
*/
class FooBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,4 @@
*/
class SensioCmsFooBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,4 @@
*/
class SensioFooBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
16 changes: 0 additions & 16 deletions src/Symfony/Bundle/SecurityBundle/SecurityBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,4 @@ public function registerExtensions(ContainerBuilder $container)
$container->addCompilerPass(new AddSecurityVotersPass());
$container->addCompilerPass(new AddAuthenticationProvidersPass());
}

/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
15 changes: 0 additions & 15 deletions src/Symfony/Bundle/SwiftmailerBundle/SwiftmailerBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,4 @@
*/
class SwiftmailerBundle extends Bundle
{
/**
* {@inheritdoc}
*/
public function getNamespace()
{
return __NAMESPACE__;
}

/**
* {@inheritdoc}
*/
public function getPath()
{
return __DIR__;
}
}
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy