Created VisitsTracker service to track visits to shortcodes

This commit is contained in:
Alejandro Celaya
2016-04-30 19:18:42 +02:00
parent b2615d0de6
commit 4ae08c02ec
4 changed files with 127 additions and 71 deletions

View File

@@ -2,7 +2,7 @@
use Acelaya\UrlShortener\Factory\CacheFactory;
use Acelaya\UrlShortener\Factory\EntityManagerFactory;
use Acelaya\UrlShortener\Middleware;
use Acelaya\UrlShortener\Service\UrlShortener;
use Acelaya\UrlShortener\Service;
use Acelaya\ZsmAnnotatedServices\Factory\V3\AnnotatedFactory;
use Doctrine\Common\Cache\Cache;
use Doctrine\ORM\EntityManager;
@@ -34,7 +34,8 @@ return [
// Services
EntityManager::class => EntityManagerFactory::class,
GuzzleHttp\Client::class => InvokableFactory::class,
UrlShortener::class => AnnotatedFactory::class,
Service\UrlShortener::class => AnnotatedFactory::class,
Service\VisitsTracker::class => AnnotatedFactory::class,
Cache::class => CacheFactory::class,
// Middleware