Skip to content

Commit

Permalink
import latest version of EventStoreManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Cassani committed Jul 8, 2017
1 parent b7f4e69 commit ffb3060
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Controller/EventStoreManagerBundleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
namespace SimpleEventStoreManager\Bundle\Controller;

use JMS\Serializer\SerializerBuilder;
use SimpleEventStoreManager\Application\EventsQuery;
use SimpleEventStoreManager\Application\EventQuery;
use SimpleEventStoreManager\Bundle\Service\Manager;
use SimpleEventStoreManager\Infrastructure\DataTransformer\JsonEventDataTransformer;
use SimpleEventStoreManager\Infrastructure\DataTransformers\JsonEventDataTransformer;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
Expand All @@ -30,7 +30,7 @@ public function indexAction(Request $request, $page = null)
/** @var Manager $manager */
$manager = $this->container->get('simple_event_store_manager');
$eventStore = $manager->getMananger()->eventStore();
$eventsQuery = new EventsQuery(
$eventsQuery = new EventQuery(
$eventStore,
new JsonEventDataTransformer(
SerializerBuilder::create()->build(),
Expand All @@ -39,6 +39,6 @@ public function indexAction(Request $request, $page = null)
)
);

return $eventsQuery->query($currentPage);
return $eventsQuery->paginate($currentPage);
}
}
8 changes: 4 additions & 4 deletions Service/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

namespace SimpleEventStoreManager\Bundle\Service;

use SimpleEventStoreManager\Application\EventsManager;
use SimpleEventStoreManager\Application\EventManager;

class Manager
{
/**
* @var EventsManager
* @var EventManager
*/
private $manager;

Expand All @@ -34,10 +34,10 @@ public function __construct(array $config = [])
*/
private function setMananger($config)
{
$this->manager = new EventsManager($config['driver'], $config['parameters']);
$this->manager = new EventManager($config['driver'], $config['parameters']);
}
/**
* @return EventsManager
* @return EventManager
*/
public function getMananger()
{
Expand Down
10 changes: 5 additions & 5 deletions composer.lock

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

0 comments on commit ffb3060

Please sign in to comment.