Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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