Skip to content

Commit

Permalink
Merge branch 'release/3.0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-sommer committed Dec 17, 2014
2 parents 786057c + aacbac5 commit 54ad942
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 60 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"extra": {
"branch-alias": {
"dev-develop": "3.0-dev"
"dev-develop": "3.0-dev",
"dev-2-1-develop": "2.1-dev"
}
},
"minimum-stability": "beta",
Expand Down
54 changes: 27 additions & 27 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Nice\Extension\SessionExtension;
use Nice\Extension\TwigExtension;
use Symfony\Component\Yaml\Yaml;
use Terramar\Packages\DependencyInjection\Compiler\TwigExtensionPass;
use Terramar\Packages\DependencyInjection\PackagesExtension;
use Terramar\Packages\Plugin\GitLab\Plugin as GitLabPlugin;
use Terramar\Packages\Plugin\Satis\Plugin as SatisPlugin;
Expand Down Expand Up @@ -61,8 +60,6 @@ protected function registerDefaultExtensions()
'firewall' => '^/manage',
'success_path' => '/manage'
)));

$this->addCompilerPass(new TwigExtensionPass());
}

/**
Expand Down
6 changes: 5 additions & 1 deletion src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ class DefaultController
public function indexAction(Application $app, Request $request)
{
$rootDir = $app->getRootDir();
$mtime = new \DateTime('@' . filemtime($rootDir . '/web/packages.json'));
$packagesJson = $rootDir . '/web/packages.json';
$mtime = null;
if (file_exists($packagesJson)) {
$mtime = new \DateTime('@' . filemtime($packagesJson));
}

return new Response(
$app->get('twig')->render('Default/index.html.twig', array(
Expand Down
26 changes: 0 additions & 26 deletions src/DependencyInjection/Compiler/TwigExtensionPass.php

This file was deleted.

3 changes: 2 additions & 1 deletion src/DependencyInjection/PackagesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public function load(array $configs, ContainerBuilder $container)
'request',
ContainerInterface::NULL_ON_INVALID_REFERENCE,
false
)));
)))
->addTag('twig.extension');

$container->register('packages.fragment_handler.uri_signer', 'Symfony\Component\HttpKernel\UriSigner')
->addArgument('');
Expand Down
2 changes: 1 addition & 1 deletion src/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

class Version
{
const VERSION = '3.0.1';
const VERSION = '3.0.2';
}

0 comments on commit 54ad942

Please sign in to comment.