Skip to content
This repository has been archived by the owner on Jul 28, 2022. It is now read-only.

Commit

Permalink
Fix namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Feb 5, 2014
1 parent 24fbb68 commit 7e6de21
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
3 changes: 2 additions & 1 deletion Tests/Adapter/ApcCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
namespace Sonata\CacheBundle\Tests\Adapter;

use Sonata\CacheBundle\Adapter\ApcCache;
use Sonata\Cache\CacheElement;

use Symfony\Component\Routing\RouterInterface;
use Sonata\CacheBundle\Cache\CacheElement;

class ApcCacheTest extends \PHPUnit_Framework_TestCase
{
Expand Down
12 changes: 7 additions & 5 deletions Twig/TwigTemplate13.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,22 @@

namespace Sonata\CacheBundle\Twig;

use Sonata\CacheBundle\Invalidation\Recorder;
use Sonata\Cache\Invalidation\Recorder;

abstract class TwigTemplate13 extends \Twig_Template
{
/**
* @var \Sonata\CacheBundle\Invalidation\Recorder
* @var \Sonata\Cache\Invalidation\Recorder
*/
protected static $recorder;

/**
* @param $object
* @param $item
* @param $object
* @param $item
* @param array $arguments
* @param string $type
* @param bool $isDefinedTest
*
* @return mixed
*/
protected function getAttribute($object, $item, array $arguments = array(), $type = \Twig_TemplateInterface::ANY_CALL, $isDefinedTest = false)
Expand All @@ -41,7 +42,8 @@ protected function getAttribute($object, $item, array $arguments = array(), $typ

/**
* @static
* @param \Sonata\CacheBundle\Invalidation\Recorder $recorder
*
* @param \Sonata\Cache\Invalidation\Recorder $recorder
*/
public static function attachRecorder(Recorder $recorder)
{
Expand Down
10 changes: 6 additions & 4 deletions Twig/TwigTemplate14.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Sonata\CacheBundle\Twig;

use Sonata\CacheBundle\Invalidation\Recorder;
use Sonata\Cache\Invalidation\Recorder;

abstract class TwigTemplate14 extends \Twig_Template
{
Expand All @@ -21,12 +21,13 @@ abstract class TwigTemplate14 extends \Twig_Template
protected static $recorder;

/**
* @param $object
* @param $item
* @param mixed $object
* @param string $item
* @param array $arguments
* @param string $type
* @param bool $isDefinedTest
* @param bool $ignoreStrictCheck
*
* @return mixed
*/
protected function getAttribute($object, $item, array $arguments = array(), $type = \Twig_TemplateInterface::ANY_CALL, $isDefinedTest = false, $ignoreStrictCheck = false)
Expand All @@ -42,7 +43,8 @@ protected function getAttribute($object, $item, array $arguments = array(), $typ

/**
* @static
* @param \Sonata\CacheBundle\Invalidation\Recorder $recorder
*
* @param \Sonata\Cache\Invalidation\Recorder $recorder
*/
public static function attachRecorder(Recorder $recorder)
{
Expand Down

0 comments on commit 7e6de21

Please sign in to comment.