Skip to content

Commit

Permalink
Updating to cohere to standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfzdotnet committed Apr 4, 2015
1 parent c81f811 commit fcaa8d5
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 15 deletions.
2 changes: 1 addition & 1 deletion ClientConfiguration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Tmdb\Symfony;
namespace Tmdb\SymfonyBundle;

use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\ParameterBag;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Tmdb\Symfony\DependencyInjection;
namespace Tmdb\SymfonyBundle\DependencyInjection;

use Monolog\Logger;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/TmdbSymfonyExtension.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tmdb\Symfony\DependencyInjection;
namespace Tmdb\SymfonyBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ Add the following to your require block in composer.json config

Configuration
----------------
Register the bundle in `app/AppKernel.php`:

```php
public function registerBundles()
{
$bundles = array(
...
new Tmdb\SymfonyBundle\TmdbSymfonyBundle(),
...
}
```

Add to your `app/config/config.yml` the following:

```yaml
Expand Down
5 changes: 0 additions & 5 deletions Resources/config/repositories.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
<parameter key="tmdb.company_repository.class">Tmdb\Repository\CompanyRepository</parameter>
<parameter key="tmdb.configuration_repository.class">Tmdb\Repository\ConfigurationRepository</parameter>
<parameter key="tmdb.credits_repository.class">Tmdb\Repository\CreditsRepository</parameter>
<<<<<<< HEAD
<parameter key="tmdb.discover_repository.class">Tmdb\Repository\DiscoverRepository</parameter>
=======
<parameter key="tmdb.discovery_repository.class">Tmdb\Repository\DiscoveryRepository</parameter>
>>>>>>> 08cc2bfb0a43509d0905ec0127f1b3dc5faf9c89
<parameter key="tmdb.find_repository.class">Tmdb\Repository\FindRepository</parameter>
<parameter key="tmdb.genre_repository.class">Tmdb\Repository\GenreRepository</parameter>
<parameter key="tmdb.jobs_repository.class">Tmdb\Repository\JobsRepository</parameter>
Expand Down Expand Up @@ -114,5 +110,4 @@
<argument type="service" id="tmdb.client" />
</service>
</services>

</container>
4 changes: 2 additions & 2 deletions Resources/config/services.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" ?>
yeah<?xml version="1.0" ?>

<container xmlns="https://symfony.com/schema/dic/services"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
Expand All @@ -9,7 +9,7 @@
<parameter key="tmdb.api_key" />
<!-- Main classes -->
<parameter key="tmdb.client.class">Tmdb\Client</parameter>
<parameter key="tmdb.client_configuration.class">Tmdb\Symfony\ClientConfiguration</parameter>
<parameter key="tmdb.client_configuration.class">Tmdb\SymfonyBundle\ClientConfiguration</parameter>
<parameter key="tmdb.api_token.class">Tmdb\ApiToken</parameter>
<parameter key="tmdb.request_token.class">Tmdb\RequestToken</parameter>
<parameter key="tmdb.session_token.class">Tmdb\SessionToken</parameter>
Expand Down
3 changes: 1 addition & 2 deletions Resources/config/twig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="https://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd">

<parameters>
<parameter key="tmdb.twig.image_extension.class">Tmdb\Symfony\Twig\TmdbExtension</parameter>
<parameter key="tmdb.twig.image_extension.class">Tmdb\SymfonyBundle\Twig\TmdbExtension</parameter>
</parameters>

<services>
Expand All @@ -14,5 +14,4 @@
<tag name="twig.extension" />
</service>
</services>

</container>
2 changes: 1 addition & 1 deletion TmdbSymfonyBundle.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Tmdb\Symfony;
namespace Tmdb\SymfonyBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

Expand Down
2 changes: 1 addition & 1 deletion Twig/TmdbExtension.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
namespace Tmdb\Symfony\Twig;
namespace Tmdb\SymfonyBundle\Twig;

use Tmdb\Client;
use Tmdb\Helper\ImageHelper;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"php-tmdb/api": "~2.0"
},
"autoload": {
"psr-4": { "Tmdb\\Symfony\\": "" }
"psr-4": { "Tmdb\\SymfonyBundle\\": "" }
}
}

0 comments on commit fcaa8d5

Please sign in to comment.