Rename FormatTalksBundle to TalksBundle
This commit is contained in:
parent
a30d64e5c2
commit
f6bf82a15e
|
@ -5,6 +5,7 @@ use Opdavies\Sculpin\Bundle\ContentGeneratorBundle\SculpinContentGeneratorBundle
|
|||
use Opdavies\Sculpin\Bundle\GistEmbedBundle\SculpinGistEmbedBundle;
|
||||
use Opdavies\Sculpin\Bundle\TwigMarkdownBundle\SculpinTwigMarkdownBundle;
|
||||
use Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel;
|
||||
use TalksBundle\SculpinTalksBundle;
|
||||
use WebsiteBundle\SculpinWebsiteBundle;
|
||||
|
||||
class SculpinKernel extends AbstractKernel
|
||||
|
@ -19,7 +20,7 @@ class SculpinKernel extends AbstractKernel
|
|||
SculpinGistEmbedBundle::class,
|
||||
SculpinTwigMarkdownBundle::class,
|
||||
|
||||
SculpinFormatTalksBundle::class,
|
||||
SculpinTalksBundle::class,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,8 +25,7 @@
|
|||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"FormatTalksBundle\\": "src/FormatTalksBundle",
|
||||
"WebsiteBundle\\": "src/WebsiteBundle"
|
||||
"TalksBundle\\": "src/TalksBundle"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace FormatTalksBundle;
|
||||
|
||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
|
||||
class SculpinFormatTalksBundle extends Bundle
|
||||
{
|
||||
}
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace FormatTalksBundle\DependencyInjection;
|
||||
namespace TalksBundle\DependencyInjection;
|
||||
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
|
||||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||
use Symfony\Component\Config\FileLocator;
|
||||
|
||||
class SculpinFormatTalksExtension extends Extension
|
||||
class SculpinTalksExtension extends Extension
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
twig.format_talks:
|
||||
class: 'FormatTalksBundle\TwigExtension\FormatTalksExtension'
|
||||
class: 'TalksBundle\TwigExtension\TalksExtension'
|
||||
tags:
|
||||
- { name: twig.extension }
|
9
src/TalksBundle/SculpinTalksBundle.php
Normal file
9
src/TalksBundle/SculpinTalksBundle.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace TalksBundle;
|
||||
|
||||
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||
|
||||
class SculpinTalksBundle extends Bundle
|
||||
{
|
||||
}
|
|
@ -1,13 +1,13 @@
|
|||
<?php
|
||||
|
||||
namespace FormatTalksBundle\TwigExtension;
|
||||
namespace TalksBundle\TwigExtension;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Sculpin\Contrib\ProxySourceCollection\ProxySourceCollection;
|
||||
use Twig_Extension;
|
||||
use Twig_SimpleFunction;
|
||||
|
||||
class FormatTalksExtension extends Twig_Extension
|
||||
class TalksExtension extends Twig_Extension
|
||||
{
|
||||
/**
|
||||
* @var string The current date.
|
||||
|
@ -112,6 +112,6 @@ class FormatTalksExtension extends Twig_Extension
|
|||
*/
|
||||
public function getName()
|
||||
{
|
||||
return 'format_talks';
|
||||
return 'talks';
|
||||
}
|
||||
}
|
|
@ -3,14 +3,14 @@
|
|||
namespace Tests\FormatTalksBundle\TwigExtension;
|
||||
|
||||
use DateTime;
|
||||
use FormatTalksBundle\TwigExtension\FormatTalksExtension;
|
||||
use TalksBundle\TwigExtension\TalksExtension;
|
||||
use Illuminate\Support\Collection;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class FormatTalksTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var FormatTalksExtension
|
||||
* @var TalksExtension
|
||||
*/
|
||||
private $extension;
|
||||
|
||||
|
@ -19,11 +19,11 @@ class FormatTalksTest extends TestCase
|
|||
*/
|
||||
public function setUp()
|
||||
{
|
||||
$this->extension = new FormatTalksExtension();
|
||||
$this->extension = new TalksExtension();
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers FormatTalksExtension::format()
|
||||
* @covers \TalksBundle\TwigExtension\TalksExtension::format()
|
||||
*/
|
||||
public function testFormat()
|
||||
{
|
||||
|
@ -98,7 +98,7 @@ class FormatTalksTest extends TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers FormatTalksExtension::getAll()
|
||||
* @covers \TalksBundle\TwigExtension\TalksExtension::getAll()
|
||||
*/
|
||||
public function testGetAll()
|
||||
{
|
||||
|
@ -123,7 +123,7 @@ class FormatTalksTest extends TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers FormatTalksExtension::getUpcoming()
|
||||
* @covers \TalksBundle\TwigExtension\TalksExtension::getUpcoming()
|
||||
*/
|
||||
public function testGetUpcoming()
|
||||
{
|
||||
|
@ -150,7 +150,7 @@ class FormatTalksTest extends TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @covers FormatTalksExtension::getPast()
|
||||
* @covers \TalksBundle\TwigExtension\TalksExtension::getPast()
|
||||
*/
|
||||
public function testGetPast()
|
||||
{
|
Reference in a new issue