From ede8385ed82b32972e1c234057f946d678ab775f Mon Sep 17 00:00:00 2001 From: Giulio De Donato Date: Mon, 2 Dec 2013 21:30:19 +0100 Subject: [PATCH] part3 --- .gitignore | 1 + app/config/config.yml | 2 + app/config/security.yml | 22 +- composer.json | 2 +- composer.lock | 2968 ----------------- .../BlogBundle/Controller/PageController.php | 19 +- src/Acme/BlogBundle/Entity/Page.php | 2 +- src/Acme/BlogBundle/Form/PageType.php | 1 - src/Acme/BlogBundle/Handler/PageHandler.php | 21 +- .../Handler/PageHandlerInterface.php | 9 + .../Resources/views/Page/getPages.html.twig | 18 + .../Resources/views/Page/newPage.html.twig | 3 +- .../Tests/Controller/PageControllerTest.php | 34 +- .../Tests/Handler/PageHandlerTest.php | 27 + 14 files changed, 100 insertions(+), 3029 deletions(-) delete mode 100644 composer.lock create mode 100644 src/Acme/BlogBundle/Resources/views/Page/getPages.html.twig diff --git a/.gitignore b/.gitignore index fa563fa..da03c0f 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ /vendor/ /bin/ /composer.phar +/composer.lock diff --git a/app/config/config.yml b/app/config/config.yml index e9901be..0d37201 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -94,6 +94,8 @@ fos_rest: access_denied_listener: json: true body_listener: true + disable_csrf_role: ROLE_API + nelmio_api_doc: name: Page API \ No newline at end of file diff --git a/app/config/security.yml b/app/config/security.yml index 243aa71..81db0e1 100644 --- a/app/config/security.yml +++ b/app/config/security.yml @@ -10,8 +10,8 @@ security: in_memory: memory: users: - user: { password: userpass, roles: [ 'ROLE_USER' ] } - admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] } + user: { password: userpass, roles: [ 'ROLE_USER', 'ROLE_API' ] } + admin: { password: adminpass, roles: [ 'ROLE_ADMIN', 'ROLE_API' ] } firewalls: dev: @@ -23,17 +23,7 @@ security: security: false secured_area: - pattern: ^/demo/secured/ - form_login: - check_path: _security_check - login_path: _demo_login - logout: - path: _demo_logout - target: _demo - #anonymous: ~ - #http_basic: - # realm: "Secured Demo Area" - - access_control: - - { path: ^/demo/secured/hello/admin/, roles: ROLE_ADMIN } - #- { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY, requires_channel: https } + pattern: ^/api + anonymous: ~ + http_basic: + realm: "You should have a user name and password" diff --git a/composer.json b/composer.json index 7f77a49..a576253 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "sensio/framework-extra-bundle": "2.3.*", "sensio/generator-bundle": "2.3.*", "incenteev/composer-parameter-handler": "~2.0", - "friendsofsymfony/rest-bundle": "@dev", + "friendsofsymfony/rest-bundle": "~1.1", "jms/serializer-bundle": "@dev", "willdurand/rest-extra-bundle": "@dev", "nelmio/api-doc-bundle": "@dev" diff --git a/composer.lock b/composer.lock deleted file mode 100644 index 0b606b0..0000000 --- a/composer.lock +++ /dev/null @@ -1,2968 +0,0 @@ -{ - "_readme": [ - "This file locks the dependencies of your project to a known state", - "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" - ], - "hash": "5b1f72524a32fcec36fb7bc0765526bd", - "packages": [ - { - "name": "dflydev/markdown", - "version": "v1.0.3", - "source": { - "type": "git", - "url": "https://github.com/dflydev/dflydev-markdown.git", - "reference": "6baed9b50f29c980795b6656d43722aadb126f7e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/dflydev/dflydev-markdown/zipball/6baed9b50f29c980795b6656d43722aadb126f7e", - "reference": "6baed9b50f29c980795b6656d43722aadb126f7e", - "shasum": "" - }, - "require": { - "php": ">=5.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-0": { - "dflydev\\markdown": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Dragonfly Development Inc.", - "email": "info@dflydev.com", - "homepage": "http://dflydev.com" - }, - { - "name": "Beau Simensen", - "email": "beau@dflydev.com", - "homepage": "http://beausimensen.com" - }, - { - "name": "Michel Fortin", - "homepage": "http://michelf.com" - }, - { - "name": "John Gruber", - "homepage": "http://daringfireball.net" - } - ], - "description": "PHP Markdown & Extra", - "homepage": "http://github.com/dflydev/dflydev-markdown", - "keywords": [ - "markdown" - ], - "time": "2013-09-23 12:00:18" - }, - { - "name": "doctrine/annotations", - "version": "v1.1.2", - "source": { - "type": "git", - "url": "https://github.com/doctrine/annotations.git", - "reference": "40db0c96985aab2822edbc4848b3bd2429e02670" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/40db0c96985aab2822edbc4848b3bd2429e02670", - "reference": "40db0c96985aab2822edbc4848b3bd2429e02670", - "shasum": "" - }, - "require": { - "doctrine/lexer": "1.*", - "php": ">=5.3.2" - }, - "require-dev": { - "doctrine/cache": "1.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\Annotations\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Docblock Annotations Parser", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "annotations", - "docblock", - "parser" - ], - "time": "2013-06-16 21:33:03" - }, - { - "name": "doctrine/cache", - "version": "v1.3.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/cache.git", - "reference": "e16d7adf45664a50fa86f515b6d5e7f670130449" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/cache/zipball/e16d7adf45664a50fa86f515b6d5e7f670130449", - "reference": "e16d7adf45664a50fa86f515b6d5e7f670130449", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "conflict": { - "doctrine/common": ">2.2,<2.4" - }, - "require-dev": { - "phpunit/phpunit": ">=3.7", - "satooshi/php-coveralls": "~0.6" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\Cache\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan H. Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Caching library offering an object-oriented API for many cache backends", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "cache", - "caching" - ], - "time": "2013-10-25 19:04:14" - }, - { - "name": "doctrine/collections", - "version": "v1.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/collections.git", - "reference": "560f29c39cfcfbcd210e5d549d993a39d898b04b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/collections/zipball/560f29c39cfcfbcd210e5d549d993a39d898b04b", - "reference": "560f29c39cfcfbcd210e5d549d993a39d898b04b", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\Collections\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan H. Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Collections Abstraction library", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "array", - "collections", - "iterator" - ], - "time": "2013-03-07 12:15:54" - }, - { - "name": "doctrine/common", - "version": "v2.4.1", - "source": { - "type": "git", - "url": "https://github.com/doctrine/common.git", - "reference": "ceb18cf9b0230f3ea208b6238130fd415abda0a7" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/common/zipball/ceb18cf9b0230f3ea208b6238130fd415abda0a7", - "reference": "ceb18cf9b0230f3ea208b6238130fd415abda0a7", - "shasum": "" - }, - "require": { - "doctrine/annotations": "1.*", - "doctrine/cache": "1.*", - "doctrine/collections": "1.*", - "doctrine/inflector": "1.*", - "doctrine/lexer": "1.*", - "php": ">=5.3.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.4.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Common Library for Doctrine projects", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "annotations", - "collections", - "eventmanager", - "persistence", - "spl" - ], - "time": "2013-09-07 10:20:34" - }, - { - "name": "doctrine/dbal", - "version": "2.3.4", - "source": { - "type": "git", - "url": "https://github.com/doctrine/dbal.git", - "reference": "2a37b007dda8e21bdbb8fa445be8fa0064199e13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/dbal/zipball/2a37b007dda8e21bdbb8fa445be8fa0064199e13", - "reference": "2a37b007dda8e21bdbb8fa445be8fa0064199e13", - "shasum": "" - }, - "require": { - "doctrine/common": ">=2.3.0,<2.5-dev", - "php": ">=5.3.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\DBAL": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - } - ], - "description": "Database Abstraction Layer", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "database", - "dbal", - "persistence", - "queryobject" - ], - "time": "2013-05-11 07:45:37" - }, - { - "name": "doctrine/doctrine-bundle", - "version": "v1.2.0", - "target-dir": "Doctrine/Bundle/DoctrineBundle", - "source": { - "type": "git", - "url": "https://github.com/doctrine/DoctrineBundle.git", - "reference": "765b0d87fcc3e839c74817b7211258cbef3a4fb9" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineBundle/zipball/765b0d87fcc3e839c74817b7211258cbef3a4fb9", - "reference": "765b0d87fcc3e839c74817b7211258cbef3a4fb9", - "shasum": "" - }, - "require": { - "doctrine/dbal": ">=2.2,<2.5-dev", - "jdorn/sql-formatter": "~1.1", - "php": ">=5.3.2", - "symfony/doctrine-bridge": "~2.2", - "symfony/framework-bundle": "~2.2" - }, - "require-dev": { - "doctrine/orm": ">=2.2,<2.5-dev", - "symfony/validator": "~2.2", - "symfony/yaml": "~2.2" - }, - "suggest": { - "doctrine/orm": "The Doctrine ORM integration is optional in the bundle.", - "symfony/web-profiler-bundle": "to use the data collector" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Bundle\\DoctrineBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - } - ], - "description": "Symfony DoctrineBundle", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "database", - "dbal", - "orm", - "persistence" - ], - "time": "2013-03-25 20:13:59" - }, - { - "name": "doctrine/inflector", - "version": "v1.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/inflector.git", - "reference": "54b8333d2a5682afdc690060c1cf384ba9f47f08" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/inflector/zipball/54b8333d2a5682afdc690060c1cf384ba9f47f08", - "reference": "54b8333d2a5682afdc690060c1cf384ba9f47f08", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "autoload": { - "psr-0": { - "Doctrine\\Common\\Inflector\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Common String Manipulations with regard to casing and singular/plural rules.", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "inflection", - "pluarlize", - "singuarlize", - "string" - ], - "time": "2013-01-10 21:49:15" - }, - { - "name": "doctrine/lexer", - "version": "v1.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/lexer.git", - "reference": "2f708a85bb3aab5d99dab8be435abd73e0b18acb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/2f708a85bb3aab5d99dab8be435abd73e0b18acb", - "reference": "2f708a85bb3aab5d99dab8be435abd73e0b18acb", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "autoload": { - "psr-0": { - "Doctrine\\Common\\Lexer\\": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Johannes Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "lexer", - "parser" - ], - "time": "2013-01-12 18:59:04" - }, - { - "name": "doctrine/orm", - "version": "2.3.4", - "source": { - "type": "git", - "url": "https://github.com/doctrine/doctrine2.git", - "reference": "a41b02c080114c0de3da4ee9fba61f7d18fae7d0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/doctrine2/zipball/a41b02c080114c0de3da4ee9fba61f7d18fae7d0", - "reference": "a41b02c080114c0de3da4ee9fba61f7d18fae7d0", - "shasum": "" - }, - "require": { - "doctrine/dbal": "2.3.*", - "ext-pdo": "*", - "php": ">=5.3.2", - "symfony/console": "2.*" - }, - "suggest": { - "symfony/yaml": "If you want to use YAML Metadata Mapping Driver" - }, - "bin": [ - "bin/doctrine", - "bin/doctrine.php" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\ORM": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - }, - { - "name": "Guilherme Blanco", - "email": "guilhermeblanco@gmail.com", - "homepage": "http://www.instaclick.com" - }, - { - "name": "Roman Borschel", - "email": "roman@code-factory.org" - }, - { - "name": "Benjamin Eberlei", - "email": "kontakt@beberlei.de" - } - ], - "description": "Object-Relational-Mapper for PHP", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "database", - "orm" - ], - "time": "2013-05-11 07:51:12" - }, - { - "name": "friendsofsymfony/rest-bundle", - "version": "dev-master", - "target-dir": "FOS/RestBundle", - "source": { - "type": "git", - "url": "https://github.com/FriendsOfSymfony/FOSRestBundle.git", - "reference": "a6eff7a910a4bd87b31fdb4b1110b869d4b46e01" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/FriendsOfSymfony/FOSRestBundle/zipball/a6eff7a910a4bd87b31fdb4b1110b869d4b46e01", - "reference": "a6eff7a910a4bd87b31fdb4b1110b869d4b46e01", - "shasum": "" - }, - "require": { - "doctrine/inflector": "1.0.*", - "php": ">=5.3.2", - "symfony/framework-bundle": "~2.1", - "willdurand/negotiation": "1.0.*" - }, - "conflict": { - "jms/serializer": "<0.12", - "jms/serializer-bundle": "<0.11" - }, - "require-dev": { - "jms/serializer-bundle": "0.12.*", - "sensio/framework-extra-bundle": "~2.1", - "symfony/form": "~2.1", - "symfony/security": "~2.1", - "symfony/serializer": "~2.1", - "symfony/validator": "~2.1", - "symfony/yaml": "~2.1" - }, - "suggest": { - "jms/serializer-bundle": "Add support for advanced serialization capabilities, recommended, requires 0.12.*", - "sensio/framework-extra-bundle": "Add support for route annotations and the view response listener", - "symfony/serializer": "Add support for basic serialization capabilities and xml decoding, requires ~2.1" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-0": { - "FOS\\RestBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Lukas Kahwe Smith", - "email": "smith@pooteeweet.org" - }, - { - "name": "FriendsOfSymfony Community", - "homepage": "https://github.com/friendsofsymfony/FOSRestBundle/contributors" - }, - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - } - ], - "description": "This Bundle provides various tools to rapidly develop RESTful API's with Symfony2", - "homepage": "http://friendsofsymfony.github.com", - "keywords": [ - "rest" - ], - "time": "2013-11-04 21:23:23" - }, - { - "name": "incenteev/composer-parameter-handler", - "version": "v2.0.0", - "target-dir": "Incenteev/ParameterHandler", - "source": { - "type": "git", - "url": "https://github.com/Incenteev/ParameterHandler.git", - "reference": "2310d74a751025f02221e0faf69d31440df71b73" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Incenteev/ParameterHandler/zipball/2310d74a751025f02221e0faf69d31440df71b73", - "reference": "2310d74a751025f02221e0faf69d31440df71b73", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "symfony/yaml": "~2.0" - }, - "require-dev": { - "composer/composer": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Incenteev\\ParameterHandler": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Christophe Coevoet", - "email": "stof@notk.org" - } - ], - "description": "Composer script handling your ignored parameter file", - "homepage": "https://github.com/Incenteev/ParameterHandler", - "keywords": [ - "parameters management" - ], - "time": "2013-04-06 17:15:44" - }, - { - "name": "jdorn/sql-formatter", - "version": "v1.2.9", - "source": { - "type": "git", - "url": "https://github.com/jdorn/sql-formatter.git", - "reference": "bd1f09133f6dbbe0713856910e58ea9480c2be58" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/jdorn/sql-formatter/zipball/bd1f09133f6dbbe0713856910e58ea9480c2be58", - "reference": "bd1f09133f6dbbe0713856910e58ea9480c2be58", - "shasum": "" - }, - "require": { - "php": ">=5.2.4" - }, - "require-dev": { - "phpunit/phpunit": "3.7.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3.x-dev" - } - }, - "autoload": { - "classmap": [ - "lib" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jeremy Dorn", - "email": "jeremy@jeremydorn.com", - "homepage": "http://jeremydorn.com/" - } - ], - "description": "a PHP SQL highlighting library", - "homepage": "https://github.com/jdorn/sql-formatter/", - "keywords": [ - "highlight", - "sql" - ], - "time": "2013-04-26 18:42:52" - }, - { - "name": "jms/metadata", - "version": "1.5.0", - "source": { - "type": "git", - "url": "https://github.com/schmittjoh/metadata.git", - "reference": "88ffa28bc987e4c26229fc84a2e541b6ed4e1459" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/metadata/zipball/88ffa28bc987e4c26229fc84a2e541b6ed4e1459", - "reference": "88ffa28bc987e4c26229fc84a2e541b6ed4e1459", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "require-dev": { - "doctrine/cache": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.5.x-dev" - } - }, - "autoload": { - "psr-0": { - "Metadata\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache" - ], - "authors": [ - { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "https://github.com/schmittjoh", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Class/method/property metadata management in PHP", - "keywords": [ - "annotations", - "metadata", - "xml", - "yaml" - ], - "time": "2013-11-05 23:02:36" - }, - { - "name": "jms/parser-lib", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/schmittjoh/parser-lib.git", - "reference": "c509473bc1b4866415627af0e1c6cc8ac97fa51d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/parser-lib/zipball/c509473bc1b4866415627af0e1c6cc8ac97fa51d", - "reference": "c509473bc1b4866415627af0e1c6cc8ac97fa51d", - "shasum": "" - }, - "require": { - "phpoption/phpoption": ">=0.9,<2.0-dev" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-0": { - "JMS\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache2" - ], - "description": "A library for easily creating recursive-descent parsers.", - "time": "2012-11-18 18:08:43" - }, - { - "name": "jms/serializer", - "version": "0.13.0", - "source": { - "type": "git", - "url": "https://github.com/schmittjoh/serializer.git", - "reference": "9e0fcd00a374e9ad484687628c6c25ab1083ea5a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/serializer/zipball/9e0fcd00a374e9ad484687628c6c25ab1083ea5a", - "reference": "9e0fcd00a374e9ad484687628c6c25ab1083ea5a", - "shasum": "" - }, - "require": { - "doctrine/annotations": "1.*", - "jms/metadata": "~1.1", - "jms/parser-lib": "1.*", - "php": ">=5.3.2", - "phpcollection/phpcollection": ">=0.1,<0.3-dev" - }, - "require-dev": { - "doctrine/orm": ">=2.1,<2.4-dev", - "symfony/filesystem": "2.*", - "symfony/form": ">=2.1,<2.2-dev", - "symfony/translation": ">=2.0,<2.2-dev", - "symfony/validator": ">=2.0,<2.2-dev", - "symfony/yaml": "2.*", - "twig/twig": ">=1.8,<2.0-dev" - }, - "suggest": { - "symfony/yaml": "Required if you'd like to serialize data to YAML format." - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.13-dev" - } - }, - "autoload": { - "psr-0": { - "JMS\\Serializer": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache2" - ], - "authors": [ - { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Library for (de-)serializing data of any complexity; supports XML, JSON, and YAML.", - "homepage": "http://jmsyst.com/libs/serializer", - "keywords": [ - "deserialization", - "jaxb", - "json", - "serialization", - "xml" - ], - "time": "2013-07-29 13:39:49" - }, - { - "name": "jms/serializer-bundle", - "version": "dev-master", - "target-dir": "JMS/SerializerBundle", - "source": { - "type": "git", - "url": "https://github.com/schmittjoh/JMSSerializerBundle.git", - "reference": "7bf5700aafbd40ba5c2ac3e10548158cec1919c5" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/JMSSerializerBundle/zipball/7bf5700aafbd40ba5c2ac3e10548158cec1919c5", - "reference": "7bf5700aafbd40ba5c2ac3e10548158cec1919c5", - "shasum": "" - }, - "require": { - "jms/serializer": "~0.11", - "php": ">=5.3.2", - "symfony/framework-bundle": "~2.1" - }, - "require-dev": { - "doctrine/doctrine-bundle": "*", - "doctrine/orm": "*", - "symfony/browser-kit": "*", - "symfony/class-loader": "*", - "symfony/css-selector": "*", - "symfony/finder": "*", - "symfony/form": "*", - "symfony/process": "*", - "symfony/twig-bundle": "*", - "symfony/validator": "*", - "symfony/yaml": "*" - }, - "suggest": { - "jms/di-extra-bundle": "Required to get lazy loading (de)serialization visitors, ~1.3" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "0.13-dev" - } - }, - "autoload": { - "psr-0": { - "JMS\\SerializerBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache2" - ], - "authors": [ - { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Allows you to easily serialize, and deserialize data of any complexity", - "homepage": "http://jmsyst.com/bundles/JMSSerializerBundle", - "keywords": [ - "deserialization", - "jaxb", - "json", - "serialization", - "xml" - ], - "time": "2013-10-16 00:35:01" - }, - { - "name": "kriswallsmith/assetic", - "version": "v1.1.2", - "source": { - "type": "git", - "url": "https://github.com/kriswallsmith/assetic.git", - "reference": "735cffd3982c6e8cdebe292d5db39d077f65890f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/kriswallsmith/assetic/zipball/735cffd3982c6e8cdebe292d5db39d077f65890f", - "reference": "735cffd3982c6e8cdebe292d5db39d077f65890f", - "shasum": "" - }, - "require": { - "php": ">=5.3.1", - "symfony/process": "~2.1" - }, - "require-dev": { - "cssmin/cssmin": "*", - "joliclic/javascript-packer": "*", - "kamicane/packager": "*", - "leafo/lessphp": "*", - "leafo/scssphp": "*", - "leafo/scssphp-compass": "*", - "mrclay/minify": "*", - "phpunit/phpunit": "~3.7", - "ptachoire/cssembed": "*", - "twig/twig": "~1.6" - }, - "suggest": { - "leafo/lessphp": "Assetic provides the integration with the lessphp LESS compiler", - "leafo/scssphp": "Assetic provides the integration with the scssphp SCSS compiler", - "leafo/scssphp-compass": "Assetic provides the integration with the SCSS compass plugin", - "ptachoire/cssembed": "Assetic provides the integration with phpcssembed to embed data uris", - "twig/twig": "Assetic provides the integration with the Twig templating engine" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.1-dev" - } - }, - "autoload": { - "psr-0": { - "Assetic": "src/" - }, - "files": [ - "src/functions.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Kris Wallsmith", - "email": "kris.wallsmith@gmail.com", - "homepage": "http://kriswallsmith.net/" - } - ], - "description": "Asset Management for PHP", - "homepage": "https://github.com/kriswallsmith/assetic", - "keywords": [ - "assets", - "compression", - "minification" - ], - "time": "2013-07-19 00:03:27" - }, - { - "name": "monolog/monolog", - "version": "1.7.0", - "source": { - "type": "git", - "url": "https://github.com/Seldaek/monolog.git", - "reference": "6225b22de9dcf36546be3a0b2fa8e3d986153f57" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/Seldaek/monolog/zipball/6225b22de9dcf36546be3a0b2fa8e3d986153f57", - "reference": "6225b22de9dcf36546be3a0b2fa8e3d986153f57", - "shasum": "" - }, - "require": { - "php": ">=5.3.0", - "psr/log": "~1.0" - }, - "require-dev": { - "aws/aws-sdk-php": "~2.4.8", - "doctrine/couchdb": "dev-master", - "mlehner/gelf-php": "1.0.*", - "phpunit/phpunit": "~3.7.0", - "raven/raven": "0.5.*", - "ruflin/elastica": "0.90.*" - }, - "suggest": { - "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", - "doctrine/couchdb": "Allow sending log messages to a CouchDB server", - "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", - "ext-mongo": "Allow sending log messages to a MongoDB server", - "mlehner/gelf-php": "Allow sending log messages to a GrayLog2 server", - "raven/raven": "Allow sending log messages to a Sentry server", - "ruflin/elastica": "Allow sending log messages to an Elastic Search server" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.7.x-dev" - } - }, - "autoload": { - "psr-0": { - "Monolog": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jordi Boggiano", - "email": "j.boggiano@seld.be", - "homepage": "http://seld.be", - "role": "Developer" - } - ], - "description": "Sends your logs to files, sockets, inboxes, databases and various web services", - "homepage": "http://github.com/Seldaek/monolog", - "keywords": [ - "log", - "logging", - "psr-3" - ], - "time": "2013-11-14 19:48:31" - }, - { - "name": "nelmio/api-doc-bundle", - "version": "dev-master", - "target-dir": "Nelmio/ApiDocBundle", - "source": { - "type": "git", - "url": "https://github.com/nelmio/NelmioApiDocBundle.git", - "reference": "eaee55e44ab8c4f59ee3d1b410b1c33dcc294d1c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/nelmio/NelmioApiDocBundle/zipball/eaee55e44ab8c4f59ee3d1b410b1c33dcc294d1c", - "reference": "eaee55e44ab8c4f59ee3d1b410b1c33dcc294d1c", - "shasum": "" - }, - "require": { - "dflydev/markdown": "1.0.*", - "symfony/console": "~2.1", - "symfony/framework-bundle": "~2.1", - "symfony/twig-bundle": "~2.1" - }, - "conflict": { - "jms/serializer": "<0.12", - "jms/serializer-bundle": "<0.11" - }, - "require-dev": { - "friendsofsymfony/rest-bundle": "~1.0", - "jms/serializer-bundle": ">=0.11", - "sensio/framework-extra-bundle": "~2.1", - "symfony/browser-kit": "~2.1", - "symfony/css-selector": "~2.1", - "symfony/form": "~2.1", - "symfony/validator": "~2.1", - "symfony/yaml": "~2.1" - }, - "suggest": { - "friendsofsymfony/rest-bundle": "For making use of REST information in the doc.", - "jms/serializer": "For making use of serializer information in the doc.", - "symfony/form": "For using form definitions as input.", - "symfony/validator": "For making use of validator information in the doc." - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.4.x-dev" - } - }, - "autoload": { - "psr-0": { - "Nelmio\\ApiDocBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nelmio", - "homepage": "http://nelm.io" - }, - { - "name": "Symfony Community", - "homepage": "https://github.com/nelmio/NelmioApiDocBundle/contributors" - } - ], - "description": "Generates documentation for your REST API from annotations", - "keywords": [ - "api", - "doc", - "documentation", - "rest" - ], - "time": "2013-11-15 10:31:53" - }, - { - "name": "phpcollection/phpcollection", - "version": "0.2.0", - "source": { - "type": "git", - "url": "https://github.com/schmittjoh/php-collection.git", - "reference": "acb02a921bb364f360ce786b13455345063c4a07" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-collection/zipball/acb02a921bb364f360ce786b13455345063c4a07", - "reference": "acb02a921bb364f360ce786b13455345063c4a07", - "shasum": "" - }, - "require": { - "phpoption/phpoption": "1.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.2-dev" - } - }, - "autoload": { - "psr-0": { - "PhpCollection": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache2" - ], - "authors": [ - { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "General-Purpose Collection Library for PHP", - "keywords": [ - "collection", - "list", - "map", - "sequence", - "set" - ], - "time": "2013-01-23 15:16:14" - }, - { - "name": "phpoption/phpoption", - "version": "1.3.0", - "source": { - "type": "git", - "url": "https://github.com/schmittjoh/php-option.git", - "reference": "1c7e8016289d17d83ced49c56d0f266fd0568941" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/1c7e8016289d17d83ced49c56d0f266fd0568941", - "reference": "1c7e8016289d17d83ced49c56d0f266fd0568941", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.3-dev" - } - }, - "autoload": { - "psr-0": { - "PhpOption\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "Apache2" - ], - "authors": [ - { - "name": "Johannes M. Schmitt", - "email": "schmittjoh@gmail.com", - "homepage": "http://jmsyst.com", - "role": "Developer of wrapped JMSSerializerBundle" - } - ], - "description": "Option Type for PHP", - "keywords": [ - "language", - "option", - "php", - "type" - ], - "time": "2013-05-19 11:09:35" - }, - { - "name": "psr/log", - "version": "1.0.0", - "source": { - "type": "git", - "url": "https://github.com/php-fig/log.git", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b", - "reference": "fe0936ee26643249e916849d48e3a51d5f5e278b", - "shasum": "" - }, - "type": "library", - "autoload": { - "psr-0": { - "Psr\\Log\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "PHP-FIG", - "homepage": "http://www.php-fig.org/" - } - ], - "description": "Common interface for logging libraries", - "keywords": [ - "log", - "psr", - "psr-3" - ], - "time": "2012-12-21 11:40:51" - }, - { - "name": "sensio/distribution-bundle", - "version": "v2.3.4", - "target-dir": "Sensio/Bundle/DistributionBundle", - "source": { - "type": "git", - "url": "https://github.com/sensiolabs/SensioDistributionBundle.git", - "reference": "66df91b4bd637a83299d8072aed3658bfd3b3021" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioDistributionBundle/zipball/66df91b4bd637a83299d8072aed3658bfd3b3021", - "reference": "66df91b4bd637a83299d8072aed3658bfd3b3021", - "shasum": "" - }, - "require": { - "symfony/framework-bundle": "~2.2" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "psr-0": { - "Sensio\\Bundle\\DistributionBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "The base bundle for the Symfony Distributions", - "keywords": [ - "configuration", - "distribution" - ], - "time": "2013-08-22 05:04:53" - }, - { - "name": "sensio/framework-extra-bundle", - "version": "v2.3.4", - "target-dir": "Sensio/Bundle/FrameworkExtraBundle", - "source": { - "type": "git", - "url": "https://github.com/sensiolabs/SensioFrameworkExtraBundle.git", - "reference": "cce05719041d952bbec856789ca18646a1891d03" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioFrameworkExtraBundle/zipball/cce05719041d952bbec856789ca18646a1891d03", - "reference": "cce05719041d952bbec856789ca18646a1891d03", - "shasum": "" - }, - "require": { - "doctrine/common": "~2.2", - "symfony/framework-bundle": "~2.2" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "psr-0": { - "Sensio\\Bundle\\FrameworkExtraBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "This bundle provides a way to configure your controllers with annotations", - "keywords": [ - "annotations", - "controllers" - ], - "time": "2013-07-24 08:49:53" - }, - { - "name": "sensio/generator-bundle", - "version": "v2.3.4", - "target-dir": "Sensio/Bundle/GeneratorBundle", - "source": { - "type": "git", - "url": "https://github.com/sensiolabs/SensioGeneratorBundle.git", - "reference": "4a7b126e9c22f858e3584b19ddce6e5bdd7677ee" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sensiolabs/SensioGeneratorBundle/zipball/4a7b126e9c22f858e3584b19ddce6e5bdd7677ee", - "reference": "4a7b126e9c22f858e3584b19ddce6e5bdd7677ee", - "shasum": "" - }, - "require": { - "symfony/console": "~2.0", - "symfony/framework-bundle": "~2.2" - }, - "require-dev": { - "doctrine/orm": "~2.2,>=2.2.3", - "symfony/doctrine-bridge": "~2.2", - "twig/twig": "~1.11" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.3.x-dev" - } - }, - "autoload": { - "psr-0": { - "Sensio\\Bundle\\GeneratorBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "This bundle generates code for you", - "time": "2013-08-21 18:09:35" - }, - { - "name": "swiftmailer/swiftmailer", - "version": "v5.0.2", - "source": { - "type": "git", - "url": "https://github.com/swiftmailer/swiftmailer.git", - "reference": "f3917ecef35a4e4d98b303eb9fee463bc983f379" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/swiftmailer/swiftmailer/zipball/f3917ecef35a4e4d98b303eb9fee463bc983f379", - "reference": "f3917ecef35a4e4d98b303eb9fee463bc983f379", - "shasum": "" - }, - "require": { - "php": ">=5.2.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "5.1-dev" - } - }, - "autoload": { - "files": [ - "lib/swift_required.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Chris Corbyn" - } - ], - "description": "Swiftmailer, free feature-rich PHP mailer", - "homepage": "http://swiftmailer.org", - "keywords": [ - "mail", - "mailer" - ], - "time": "2013-08-30 12:35:21" - }, - { - "name": "symfony/assetic-bundle", - "version": "v2.3.0", - "target-dir": "Symfony/Bundle/AsseticBundle", - "source": { - "type": "git", - "url": "https://github.com/symfony/AsseticBundle.git", - "reference": "146dd3cb46b302bd471560471c6aaa930483dac1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/AsseticBundle/zipball/146dd3cb46b302bd471560471c6aaa930483dac1", - "reference": "146dd3cb46b302bd471560471c6aaa930483dac1", - "shasum": "" - }, - "require": { - "kriswallsmith/assetic": "~1.1", - "php": ">=5.3.0", - "symfony/framework-bundle": "~2.1" - }, - "require-dev": { - "symfony/class-loader": "~2.1", - "symfony/console": "~2.1", - "symfony/css-selector": "~2.1", - "symfony/dom-crawler": "~2.1", - "symfony/form": "~2.1", - "symfony/twig-bundle": "~2.1", - "symfony/yaml": "~2.1" - }, - "suggest": { - "symfony/twig-bundle": "~2.1" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.1.x-dev" - } - }, - "autoload": { - "psr-0": { - "Symfony\\Bundle\\AsseticBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Kris Wallsmith", - "email": "kris.wallsmith@gmail.com", - "homepage": "http://kriswallsmith.net/" - } - ], - "description": "Integrates Assetic into Symfony2", - "homepage": "https://github.com/symfony/AsseticBundle", - "keywords": [ - "assets", - "compression", - "minification" - ], - "time": "2013-05-16 05:32:23" - }, - { - "name": "symfony/icu", - "version": "v1.2.0", - "target-dir": "Symfony/Component/Icu", - "source": { - "type": "git", - "url": "https://github.com/symfony/Icu.git", - "reference": "7299cd3d8d6602103d1ebff5d0a9917b7bc6de72" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/Icu/zipball/7299cd3d8d6602103d1ebff5d0a9917b7bc6de72", - "reference": "7299cd3d8d6602103d1ebff5d0a9917b7bc6de72", - "shasum": "" - }, - "require": { - "lib-icu": ">=4.4", - "php": ">=5.3.3", - "symfony/intl": "~2.3" - }, - "type": "library", - "autoload": { - "psr-0": { - "Symfony\\Component\\Icu\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - }, - { - "name": "Bernhard Schussek", - "email": "bschussek@gmail.com" - } - ], - "description": "Contains an excerpt of the ICU data and classes to load it.", - "homepage": "http://symfony.com", - "keywords": [ - "icu", - "intl" - ], - "time": "2013-06-03 18:32:58" - }, - { - "name": "symfony/monolog-bundle", - "version": "v2.3.0", - "target-dir": "Symfony/Bundle/MonologBundle", - "source": { - "type": "git", - "url": "https://github.com/symfony/MonologBundle.git", - "reference": "03ed73bc11367b3156cc21f22ac37c7f70fcd10a" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/MonologBundle/zipball/03ed73bc11367b3156cc21f22ac37c7f70fcd10a", - "reference": "03ed73bc11367b3156cc21f22ac37c7f70fcd10a", - "shasum": "" - }, - "require": { - "monolog/monolog": "~1.3", - "php": ">=5.3.2", - "symfony/config": "~2.2-beta2", - "symfony/dependency-injection": "~2.2-beta2", - "symfony/monolog-bridge": "~2.2-beta2" - }, - "require-dev": { - "symfony/yaml": "~2.2-beta2" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, - "autoload": { - "psr-0": { - "Symfony\\Bundle\\MonologBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - } - ], - "description": "Symfony MonologBundle", - "homepage": "http://symfony.com", - "keywords": [ - "log", - "logging" - ], - "time": "2013-05-27 18:06:55" - }, - { - "name": "symfony/swiftmailer-bundle", - "version": "v2.3.4", - "target-dir": "Symfony/Bundle/SwiftmailerBundle", - "source": { - "type": "git", - "url": "https://github.com/symfony/SwiftmailerBundle.git", - "reference": "f5e5d12629c26a835c7aa1d74e2e041486b92d93" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/SwiftmailerBundle/zipball/f5e5d12629c26a835c7aa1d74e2e041486b92d93", - "reference": "f5e5d12629c26a835c7aa1d74e2e041486b92d93", - "shasum": "" - }, - "require": { - "php": ">=5.3.2", - "swiftmailer/swiftmailer": ">=4.2.0,<5.1-dev", - "symfony/swiftmailer-bridge": "~2.1" - }, - "require-dev": { - "symfony/config": "~2.1", - "symfony/dependency-injection": "~2.1", - "symfony/http-kernel": "~2.1", - "symfony/yaml": "~2.1" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.2-dev" - } - }, - "autoload": { - "psr-0": { - "Symfony\\Bundle\\SwiftmailerBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - } - ], - "description": "Symfony SwiftmailerBundle", - "homepage": "http://symfony.com", - "time": "2013-08-22 13:32:58" - }, - { - "name": "symfony/symfony", - "version": "v2.3.7", - "source": { - "type": "git", - "url": "https://github.com/symfony/symfony.git", - "reference": "2829b471871c2564228fe9f0832a0f928a8ffaa1" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/symfony/zipball/2829b471871c2564228fe9f0832a0f928a8ffaa1", - "reference": "2829b471871c2564228fe9f0832a0f928a8ffaa1", - "shasum": "" - }, - "require": { - "doctrine/common": "~2.2", - "php": ">=5.3.3", - "psr/log": "~1.0", - "symfony/icu": "~1.0", - "twig/twig": "~1.11" - }, - "replace": { - "symfony/browser-kit": "self.version", - "symfony/class-loader": "self.version", - "symfony/config": "self.version", - "symfony/console": "self.version", - "symfony/css-selector": "self.version", - "symfony/debug": "self.version", - "symfony/dependency-injection": "self.version", - "symfony/doctrine-bridge": "self.version", - "symfony/dom-crawler": "self.version", - "symfony/event-dispatcher": "self.version", - "symfony/filesystem": "self.version", - "symfony/finder": "self.version", - "symfony/form": "self.version", - "symfony/framework-bundle": "self.version", - "symfony/http-foundation": "self.version", - "symfony/http-kernel": "self.version", - "symfony/intl": "self.version", - "symfony/locale": "self.version", - "symfony/monolog-bridge": "self.version", - "symfony/options-resolver": "self.version", - "symfony/process": "self.version", - "symfony/propel1-bridge": "self.version", - "symfony/property-access": "self.version", - "symfony/proxy-manager-bridge": "self.version", - "symfony/routing": "self.version", - "symfony/security": "self.version", - "symfony/security-bundle": "self.version", - "symfony/serializer": "self.version", - "symfony/stopwatch": "self.version", - "symfony/swiftmailer-bridge": "self.version", - "symfony/templating": "self.version", - "symfony/translation": "self.version", - "symfony/twig-bridge": "self.version", - "symfony/twig-bundle": "self.version", - "symfony/validator": "self.version", - "symfony/web-profiler-bundle": "self.version", - "symfony/yaml": "self.version" - }, - "require-dev": { - "doctrine/data-fixtures": "1.0.*", - "doctrine/dbal": "~2.2", - "doctrine/orm": "~2.2,>=2.2.3", - "ircmaxell/password-compat": "1.0.*", - "monolog/monolog": "~1.3", - "ocramius/proxy-manager": ">=0.3.1,<0.4-dev", - "propel/propel1": "1.6.*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "2.3-dev" - } - }, - "autoload": { - "psr-0": { - "Symfony\\": "src/" - }, - "classmap": [ - "src/Symfony/Component/HttpFoundation/Resources/stubs", - "src/Symfony/Component/Intl/Resources/stubs" - ], - "files": [ - "src/Symfony/Component/Intl/Resources/stubs/functions.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - } - ], - "description": "The Symfony PHP framework", - "homepage": "http://symfony.com", - "keywords": [ - "framework" - ], - "time": "2013-11-14 07:58:51" - }, - { - "name": "twig/extensions", - "version": "v1.0.1", - "source": { - "type": "git", - "url": "https://github.com/fabpot/Twig-extensions.git", - "reference": "f91a82ec225e5bb108e01a0f93c9be04f84dcfa0" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/fabpot/Twig-extensions/zipball/f91a82ec225e5bb108e01a0f93c9be04f84dcfa0", - "reference": "f91a82ec225e5bb108e01a0f93c9be04f84dcfa0", - "shasum": "" - }, - "require": { - "twig/twig": "~1.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Twig_Extensions_": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - } - ], - "description": "Common additional features for Twig that do not directly belong in core", - "homepage": "https://github.com/fabpot/Twig-extensions", - "keywords": [ - "debug", - "i18n", - "text" - ], - "time": "2013-10-18 19:37:15" - }, - { - "name": "twig/twig", - "version": "v1.14.2", - "source": { - "type": "git", - "url": "https://github.com/fabpot/Twig.git", - "reference": "ca445842fcea4f844d68203ffa2d00f5e3cdea64" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/fabpot/Twig/zipball/ca445842fcea4f844d68203ffa2d00f5e3cdea64", - "reference": "ca445842fcea4f844d68203ffa2d00f5e3cdea64", - "shasum": "" - }, - "require": { - "php": ">=5.2.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.14-dev" - } - }, - "autoload": { - "psr-0": { - "Twig_": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Armin Ronacher", - "email": "armin.ronacher@active-4.com" - } - ], - "description": "Twig, the flexible, fast, and secure template language for PHP", - "homepage": "http://twig.sensiolabs.org", - "keywords": [ - "templating" - ], - "time": "2013-10-30 08:20:53" - }, - { - "name": "willdurand/negotiation", - "version": "1.0.1", - "source": { - "type": "git", - "url": "https://github.com/willdurand/Negotiation.git", - "reference": "6021e6a9e14d6ab62dcd4f83364058d4978d6890" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/willdurand/Negotiation/zipball/6021e6a9e14d6ab62dcd4f83364058d4978d6890", - "reference": "6021e6a9e14d6ab62dcd4f83364058d4978d6890", - "shasum": "" - }, - "require": { - "php": ">=5.3.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, - "autoload": { - "psr-0": { - "Negotiation": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "William Durand", - "email": "william.durand1@gmail.com", - "homepage": "http://www.willdurand.fr" - } - ], - "description": "Content Negotiation tools for PHP provided as a standalone library.", - "homepage": "http://williamdurand.fr/Negotiation/", - "keywords": [ - "accept", - "content", - "format", - "header", - "negotiation" - ], - "time": "2013-08-01 14:42:09" - }, - { - "name": "willdurand/rest-extra-bundle", - "version": "dev-master", - "target-dir": "Bazinga/Bundle/RestExtraBundle", - "source": { - "type": "git", - "url": "https://github.com/willdurand/BazingaRestExtraBundle.git", - "reference": "343a5022b07bb8d1bf4844f3a4d8c69e07b50302" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/willdurand/BazingaRestExtraBundle/zipball/343a5022b07bb8d1bf4844f3a4d8c69e07b50302", - "reference": "343a5022b07bb8d1bf4844f3a4d8c69e07b50302", - "shasum": "" - }, - "require": { - "symfony/framework-bundle": "~2.1", - "willdurand/negotiation": "~1.0" - }, - "require-dev": { - "symfony/browser-kit": "~2.1", - "symfony/finder": "~2.1" - }, - "type": "symfony-bundle", - "autoload": { - "psr-0": { - "Bazinga\\Bundle\\RestExtraBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "William Durand", - "email": "william.durand1@gmail.com", - "homepage": "http://www.willdurand.fr" - } - ], - "description": "This bundle provides extra features for your REST APIs built using Symfony2.", - "keywords": [ - "api", - "rest" - ], - "time": "2013-11-13 10:05:46" - } - ], - "packages-dev": [ - { - "name": "doctrine/data-fixtures", - "version": "v1.0.0", - "source": { - "type": "git", - "url": "https://github.com/doctrine/data-fixtures.git", - "reference": "b4a135c7db56ecc4602b54a2184368f440cac33e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/data-fixtures/zipball/b4a135c7db56ecc4602b54a2184368f440cac33e", - "reference": "b4a135c7db56ecc4602b54a2184368f440cac33e", - "shasum": "" - }, - "require": { - "doctrine/common": ">=2.2,<2.5-dev", - "php": ">=5.3.2" - }, - "require-dev": { - "doctrine/orm": ">=2.2,<2.5-dev" - }, - "suggest": { - "doctrine/mongodb-odm": "For loading MongoDB ODM fixtures", - "doctrine/orm": "For loading ORM fixtures", - "doctrine/phpcr-odm": "For loading PHPCR ODM fixtures" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Common\\DataFixtures": "lib/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Jonathan Wage", - "email": "jonwage@gmail.com", - "homepage": "http://www.jwage.com/", - "role": "Creator" - } - ], - "description": "Data Fixtures for all Doctrine Object Managers", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "database" - ], - "time": "2013-07-10 17:04:07" - }, - { - "name": "doctrine/doctrine-fixtures-bundle", - "version": "dev-master", - "target-dir": "Doctrine/Bundle/FixturesBundle", - "source": { - "type": "git", - "url": "https://github.com/doctrine/DoctrineFixturesBundle.git", - "reference": "3caec4826e58fe47520b591f965b4adcdfc8a6c8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/doctrine/DoctrineFixturesBundle/zipball/3caec4826e58fe47520b591f965b4adcdfc8a6c8", - "reference": "3caec4826e58fe47520b591f965b4adcdfc8a6c8", - "shasum": "" - }, - "require": { - "doctrine/data-fixtures": "~1.0", - "doctrine/doctrine-bundle": "~1.0", - "php": ">=5.3.2", - "symfony/doctrine-bridge": "~2.1" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "2.2.x-dev" - } - }, - "autoload": { - "psr-0": { - "Doctrine\\Bundle\\FixturesBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com" - }, - { - "name": "Symfony Community", - "homepage": "http://symfony.com/contributors" - }, - { - "name": "Doctrine Project", - "homepage": "http://www.doctrine-project.org" - } - ], - "description": "Symfony DoctrineFixturesBundle", - "homepage": "http://www.doctrine-project.org", - "keywords": [ - "Fixture", - "persistence" - ], - "time": "2013-09-16 10:15:05" - }, - { - "name": "guzzle/common", - "version": "v3.7.4", - "target-dir": "Guzzle/Common", - "source": { - "type": "git", - "url": "https://github.com/guzzle/common.git", - "reference": "5126e268446c7e7df961b89128d71878e0652432" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/common/zipball/5126e268446c7e7df961b89128d71878e0652432", - "reference": "5126e268446c7e7df961b89128d71878e0652432", - "shasum": "" - }, - "require": { - "php": ">=5.3.2", - "symfony/event-dispatcher": ">=2.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7-dev" - } - }, - "autoload": { - "psr-0": { - "Guzzle\\Common": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Common libraries used by Guzzle", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "collection", - "common", - "event", - "exception" - ], - "time": "2013-10-02 20:47:00" - }, - { - "name": "guzzle/http", - "version": "v3.7.4", - "target-dir": "Guzzle/Http", - "source": { - "type": "git", - "url": "https://github.com/guzzle/http.git", - "reference": "3420035adcf312d62a2e64f3e6b3e3e590121786" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/http/zipball/3420035adcf312d62a2e64f3e6b3e3e590121786", - "reference": "3420035adcf312d62a2e64f3e6b3e3e590121786", - "shasum": "" - }, - "require": { - "guzzle/common": "self.version", - "guzzle/parser": "self.version", - "guzzle/stream": "self.version", - "php": ">=5.3.2" - }, - "suggest": { - "ext-curl": "*" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7-dev" - } - }, - "autoload": { - "psr-0": { - "Guzzle\\Http": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "HTTP libraries used by Guzzle", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "Guzzle", - "client", - "curl", - "http", - "http client" - ], - "time": "2013-09-20 22:05:53" - }, - { - "name": "guzzle/parser", - "version": "v3.7.4", - "target-dir": "Guzzle/Parser", - "source": { - "type": "git", - "url": "https://github.com/guzzle/parser.git", - "reference": "a25c2ddda1c52fb69a4ee56eb530b13ddd9573c2" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/parser/zipball/a25c2ddda1c52fb69a4ee56eb530b13ddd9573c2", - "reference": "a25c2ddda1c52fb69a4ee56eb530b13ddd9573c2", - "shasum": "" - }, - "require": { - "php": ">=5.3.2" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7-dev" - } - }, - "autoload": { - "psr-0": { - "Guzzle\\Parser": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "description": "Interchangeable parsers used by Guzzle", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "URI Template", - "cookie", - "http", - "message", - "url" - ], - "time": "2013-07-11 22:46:03" - }, - { - "name": "guzzle/plugin", - "version": "v3.7.4", - "target-dir": "Guzzle/Plugin", - "source": { - "type": "git", - "url": "https://github.com/guzzle/plugin.git", - "reference": "56118c3a83e8bb4a185cc91fa5f7121319b903c6" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/plugin/zipball/56118c3a83e8bb4a185cc91fa5f7121319b903c6", - "reference": "56118c3a83e8bb4a185cc91fa5f7121319b903c6", - "shasum": "" - }, - "require": { - "guzzle/http": "self.version", - "php": ">=5.3.2" - }, - "replace": { - "guzzle/plugin-async": "self.version", - "guzzle/plugin-backoff": "self.version", - "guzzle/plugin-cache": "self.version", - "guzzle/plugin-cookie": "self.version", - "guzzle/plugin-curlauth": "self.version", - "guzzle/plugin-error-response": "self.version", - "guzzle/plugin-history": "self.version", - "guzzle/plugin-log": "self.version", - "guzzle/plugin-md5": "self.version", - "guzzle/plugin-mock": "self.version", - "guzzle/plugin-oauth": "self.version" - }, - "suggest": { - "guzzle/cache": "v3.7.4", - "guzzle/log": "v3.7.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7-dev" - } - }, - "autoload": { - "psr-0": { - "Guzzle\\Plugin": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle plugin component containing all Guzzle HTTP plugins", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "Guzzle", - "client", - "extension", - "http", - "plugin" - ], - "time": "2013-10-02 19:55:17" - }, - { - "name": "guzzle/stream", - "version": "v3.7.4", - "target-dir": "Guzzle/Stream", - "source": { - "type": "git", - "url": "https://github.com/guzzle/stream.git", - "reference": "a86111d9ac7db31d65a053c825869409fe8fc83f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/guzzle/stream/zipball/a86111d9ac7db31d65a053c825869409fe8fc83f", - "reference": "a86111d9ac7db31d65a053c825869409fe8fc83f", - "shasum": "" - }, - "require": { - "guzzle/common": "self.version", - "php": ">=5.3.2" - }, - "suggest": { - "guzzle/http": "To convert Guzzle request objects to PHP streams" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7-dev" - } - }, - "autoload": { - "psr-0": { - "Guzzle\\Stream": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Michael Dowling", - "email": "mtdowling@gmail.com", - "homepage": "https://github.com/mtdowling" - } - ], - "description": "Guzzle stream wrapper component", - "homepage": "http://guzzlephp.org/", - "keywords": [ - "Guzzle", - "component", - "stream" - ], - "time": "2013-07-30 22:07:23" - }, - { - "name": "liip/functional-test-bundle", - "version": "dev-master", - "target-dir": "Liip/FunctionalTestBundle", - "source": { - "type": "git", - "url": "https://github.com/liip/LiipFunctionalTestBundle.git", - "reference": "06584ef6638140ed9637bac577983237271c5244" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/liip/LiipFunctionalTestBundle/zipball/06584ef6638140ed9637bac577983237271c5244", - "reference": "06584ef6638140ed9637bac577983237271c5244", - "shasum": "" - }, - "require": { - "doctrine/common": "2.*", - "php": ">=5.3.2", - "symfony/browser-kit": "~2.0", - "symfony/framework-bundle": "~2.0" - }, - "suggest": { - "doctrine/dbal": "Required when using the fixture loading functionality with an ORM and SQLite", - "doctrine/doctrine-fixtures-bundle": "Required when using the fixture loading functionality", - "doctrine/orm": "Required when using the fixture loading functionality with an ORM and SQLite" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, - "autoload": { - "psr-0": { - "Liip\\FunctionalTestBundle": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Liip AG", - "homepage": "http://www.liip.ch/" - }, - { - "name": "Community contributions", - "homepage": "https://github.com/liip/LiipFunctionalTestBundle/contributors" - } - ], - "description": "This bundles provides additional functional test-cases for Symfony2 applications", - "keywords": [ - "Symfony2" - ], - "time": "2013-10-14 06:10:06" - }, - { - "name": "phpunit/php-code-coverage", - "version": "1.2.13", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "466e7cd2554b4e264c9e3f31216d25ac0e5f3d94" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/466e7cd2554b4e264c9e3f31216d25ac0e5f3d94", - "reference": "466e7cd2554b4e264c9e3f31216d25ac0e5f3d94", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-file-iterator": ">=1.3.0@stable", - "phpunit/php-text-template": ">=1.1.1@stable", - "phpunit/php-token-stream": ">=1.1.3@stable" - }, - "require-dev": { - "phpunit/phpunit": "3.7.*@dev" - }, - "suggest": { - "ext-dom": "*", - "ext-xdebug": ">=2.0.5" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", - "homepage": "https://github.com/sebastianbergmann/php-code-coverage", - "keywords": [ - "coverage", - "testing", - "xunit" - ], - "time": "2013-09-10 08:14:32" - }, - { - "name": "phpunit/php-file-iterator", - "version": "1.3.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/acd690379117b042d1c8af1fafd61bde001bf6bb", - "reference": "acd690379117b042d1c8af1fafd61bde001bf6bb", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "File/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "FilterIterator implementation that filters files based on a list of suffixes.", - "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", - "keywords": [ - "filesystem", - "iterator" - ], - "time": "2013-10-10 15:34:57" - }, - { - "name": "phpunit/php-text-template", - "version": "1.1.4", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-text-template.git", - "reference": "5180896f51c5b3648ac946b05f9ec02be78a0b23" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/5180896f51c5b3648ac946b05f9ec02be78a0b23", - "reference": "5180896f51c5b3648ac946b05f9ec02be78a0b23", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "Text/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Simple template engine.", - "homepage": "https://github.com/sebastianbergmann/php-text-template/", - "keywords": [ - "template" - ], - "time": "2012-10-31 18:15:28" - }, - { - "name": "phpunit/php-timer", - "version": "1.0.5", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/19689d4354b295ee3d8c54b4f42c3efb69cbc17c", - "reference": "19689d4354b295ee3d8c54b4f42c3efb69cbc17c", - "shasum": "" - }, - "require": { - "php": ">=5.3.3" - }, - "type": "library", - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Utility class for timing", - "homepage": "https://github.com/sebastianbergmann/php-timer/", - "keywords": [ - "timer" - ], - "time": "2013-08-02 07:42:54" - }, - { - "name": "phpunit/php-token-stream", - "version": "1.2.1", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/php-token-stream.git", - "reference": "5220af2a7929aa35cf663d97c89ad3d50cf5fa3e" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/5220af2a7929aa35cf663d97c89ad3d50cf5fa3e", - "reference": "5220af2a7929aa35cf663d97c89ad3d50cf5fa3e", - "shasum": "" - }, - "require": { - "ext-tokenizer": "*", - "php": ">=5.3.3" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2-dev" - } - }, - "autoload": { - "classmap": [ - "PHP/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Wrapper around PHP's tokenizer extension.", - "homepage": "https://github.com/sebastianbergmann/php-token-stream/", - "keywords": [ - "tokenizer" - ], - "time": "2013-09-13 04:58:23" - }, - { - "name": "phpunit/phpunit", - "version": "3.7.28", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "3b97c8492bcafbabe6b6fbd2ab35f2f04d932a8d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3b97c8492bcafbabe6b6fbd2ab35f2f04d932a8d", - "reference": "3b97c8492bcafbabe6b6fbd2ab35f2f04d932a8d", - "shasum": "" - }, - "require": { - "ext-dom": "*", - "ext-pcre": "*", - "ext-reflection": "*", - "ext-spl": "*", - "php": ">=5.3.3", - "phpunit/php-code-coverage": "~1.2.1", - "phpunit/php-file-iterator": ">=1.3.1", - "phpunit/php-text-template": ">=1.1.1", - "phpunit/php-timer": ">=1.0.4", - "phpunit/phpunit-mock-objects": "~1.2.0", - "symfony/yaml": "~2.0" - }, - "require-dev": { - "pear-pear/pear": "1.9.4" - }, - "suggest": { - "ext-json": "*", - "ext-simplexml": "*", - "ext-tokenizer": "*", - "phpunit/php-invoker": ">=1.1.0,<1.2.0" - }, - "bin": [ - "composer/bin/phpunit" - ], - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "3.7.x-dev" - } - }, - "autoload": { - "classmap": [ - "PHPUnit/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "", - "../../symfony/yaml/" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sebastian@phpunit.de", - "role": "lead" - } - ], - "description": "The PHP Unit Testing framework.", - "homepage": "http://www.phpunit.de/", - "keywords": [ - "phpunit", - "testing", - "xunit" - ], - "time": "2013-10-17 07:27:40" - }, - { - "name": "phpunit/phpunit-mock-objects", - "version": "1.2.3", - "source": { - "type": "git", - "url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git", - "reference": "5794e3c5c5ba0fb037b11d8151add2a07fa82875" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/5794e3c5c5ba0fb037b11d8151add2a07fa82875", - "reference": "5794e3c5c5ba0fb037b11d8151add2a07fa82875", - "shasum": "" - }, - "require": { - "php": ">=5.3.3", - "phpunit/php-text-template": ">=1.1.1@stable" - }, - "suggest": { - "ext-soap": "*" - }, - "type": "library", - "autoload": { - "classmap": [ - "PHPUnit/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "include-path": [ - "" - ], - "license": [ - "BSD-3-Clause" - ], - "authors": [ - { - "name": "Sebastian Bergmann", - "email": "sb@sebastian-bergmann.de", - "role": "lead" - } - ], - "description": "Mock Object library for PHPUnit", - "homepage": "https://github.com/sebastianbergmann/phpunit-mock-objects/", - "keywords": [ - "mock", - "xunit" - ], - "time": "2013-01-13 10:24:48" - } - ], - "aliases": [ - - ], - "minimum-stability": "stable", - "stability-flags": { - "friendsofsymfony/rest-bundle": 20, - "jms/serializer-bundle": 20, - "willdurand/rest-extra-bundle": 20, - "nelmio/api-doc-bundle": 20, - "doctrine/doctrine-fixtures-bundle": 20, - "liip/functional-test-bundle": 20 - }, - "platform": { - "php": ">=5.3.3" - }, - "platform-dev": [ - - ] -} diff --git a/src/Acme/BlogBundle/Controller/PageController.php b/src/Acme/BlogBundle/Controller/PageController.php index 4c9dcbf..d2ca955 100644 --- a/src/Acme/BlogBundle/Controller/PageController.php +++ b/src/Acme/BlogBundle/Controller/PageController.php @@ -34,7 +34,9 @@ class PageController extends FOSRestController * @Annotations\QueryParam(name="offset", requirements="\d+", nullable=true, description="Offset from which to start listing pages.") * @Annotations\QueryParam(name="limit", requirements="\d+", default="5", description="How many pages to return.") * - * @Annotations\View() + * @Annotations\View( + * templateVar="pages" + * ) * * @param Request $request the request object * @param ParamFetcherInterface $paramFetcher param fetcher service @@ -43,16 +45,11 @@ class PageController extends FOSRestController */ public function getPagesAction(Request $request, ParamFetcherInterface $paramFetcher) { - $session = $request->getSession(); - $offset = $paramFetcher->get('offset'); - $start = null == $offset ? 0 : $offset + 1; + $offset = null == $offset ? 0 : $offset; $limit = $paramFetcher->get('limit'); - $pages = $session->get(self::SESSION_CONTEXT_PAGE, array()); - $pages = array_slice($notes, $start, $limit, true); - - return new NoteCollection($notes, $offset, $limit); + return $this->container->get('acme_blog.page.handler')->all($limit, $offset); } /** @@ -123,7 +120,7 @@ public function newPageAction() * templateVar = "form" * ) * - * @param Request $request the request instance + * @param Request $request the request object * * @return FormTypeInterface|View */ @@ -165,7 +162,7 @@ public function postPageAction(Request $request) * templateVar = "form" * ) * - * @param Request $request the request instance + * @param Request $request the request object * @param int $id the page id * * @return FormTypeInterface|View @@ -218,7 +215,7 @@ public function putPageAction(Request $request, $id) * templateVar = "form" * ) * - * @param Request $request the request instance + * @param Request $request the request object * @param int $id the page id * * @return FormTypeInterface|View diff --git a/src/Acme/BlogBundle/Entity/Page.php b/src/Acme/BlogBundle/Entity/Page.php index 9f2adfc..d614ebb 100644 --- a/src/Acme/BlogBundle/Entity/Page.php +++ b/src/Acme/BlogBundle/Entity/Page.php @@ -9,7 +9,7 @@ * Page * * @ORM\Table() - * @ORM\Entity + * @ORM\Entity() */ class Page implements PageInterface { diff --git a/src/Acme/BlogBundle/Form/PageType.php b/src/Acme/BlogBundle/Form/PageType.php index 945ea6a..dd3cfbd 100644 --- a/src/Acme/BlogBundle/Form/PageType.php +++ b/src/Acme/BlogBundle/Form/PageType.php @@ -27,7 +27,6 @@ public function setDefaultOptions(OptionsResolverInterface $resolver) { $resolver->setDefaults(array( 'data_class' => 'Acme\BlogBundle\Entity\Page', - 'csrf_protection' => false )); } diff --git a/src/Acme/BlogBundle/Handler/PageHandler.php b/src/Acme/BlogBundle/Handler/PageHandler.php index 2c4b94f..526aa39 100644 --- a/src/Acme/BlogBundle/Handler/PageHandler.php +++ b/src/Acme/BlogBundle/Handler/PageHandler.php @@ -36,15 +36,16 @@ public function get($id) } /** - * Get a Page. + * Get a list of Pages. * - * @param mixed $id + * @param int $limit the limit of the result + * @param int $offset starting from the offset * - * @return PageInterface + * @return array */ - public function all(int $offset = 0, int $limit = 5) + public function all($limit = 5, $offset = 0) { - return $this->repository->find($id); + return $this->repository->findBy(array(), null, $limit, $offset); } /** @@ -64,8 +65,8 @@ public function post(array $parameters) /** * Edit a Page. * - * @param PageInterface $page - * @param array $parameters + * @param PageInterface $page + * @param array $parameters * * @return PageInterface */ @@ -77,8 +78,8 @@ public function put(PageInterface $page, array $parameters) /** * Partially update a Page. * - * @param PageInterface $page - * @param array $parameters + * @param PageInterface $page + * @param array $parameters * * @return PageInterface */ @@ -116,7 +117,7 @@ private function processForm(PageInterface $page, array $parameters, $method = " private function createPage() { - return new $this->entityClass(); + return new $this->entityClass(); } } \ No newline at end of file diff --git a/src/Acme/BlogBundle/Handler/PageHandlerInterface.php b/src/Acme/BlogBundle/Handler/PageHandlerInterface.php index e86bf22..183cee3 100644 --- a/src/Acme/BlogBundle/Handler/PageHandlerInterface.php +++ b/src/Acme/BlogBundle/Handler/PageHandlerInterface.php @@ -17,6 +17,15 @@ interface PageHandlerInterface */ public function get($id); + /** + * Get a list of Pages. + * + * @param int $limit the limit of the result + * @param int $offset starting from the offset + * + * @return array + */ + public function all($limit = 5, $offset = 0); /** * Post Page, creates a new Page. diff --git a/src/Acme/BlogBundle/Resources/views/Page/getPages.html.twig b/src/Acme/BlogBundle/Resources/views/Page/getPages.html.twig new file mode 100644 index 0000000..3df5182 --- /dev/null +++ b/src/Acme/BlogBundle/Resources/views/Page/getPages.html.twig @@ -0,0 +1,18 @@ +{% block content %} +

{{ 'page.list'|trans({}, 'AcmeBlogBundle') }}

+ + +

+ {{ 'page.new.link'|trans({}, 'AcmeBlogBundle') }} +

+{% endblock %} \ No newline at end of file diff --git a/src/Acme/BlogBundle/Resources/views/Page/newPage.html.twig b/src/Acme/BlogBundle/Resources/views/Page/newPage.html.twig index 2d84c25..643e61b 100644 --- a/src/Acme/BlogBundle/Resources/views/Page/newPage.html.twig +++ b/src/Acme/BlogBundle/Resources/views/Page/newPage.html.twig @@ -1,7 +1,6 @@ - {% block content %}

Create Page Form

- {% if (form is defined) %} + {% if (form is not null) %}
{{ form_widget(form) }} diff --git a/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php b/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php index 5d25b8d..91a46fe 100644 --- a/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php +++ b/src/Acme/BlogBundle/Tests/Controller/PageControllerTest.php @@ -7,16 +7,20 @@ class PageControllerTest extends WebTestCase { - public function customSetUp($fixtures) + public function setUp() { - $this->client = static::createClient(); - $this->loadFixtures($fixtures); + $this->auth = array( + 'PHP_AUTH_USER' => 'user', + 'PHP_AUTH_PW' => 'userpass', + ); + + $this->client = static::createClient(array(), $this->auth); } public function testJsonGetPageAction() { $fixtures = array('Acme\BlogBundle\Tests\Fixtures\Entity\LoadPageData'); - $this->customSetUp($fixtures); + $this->loadFixtures($fixtures); $pages = LoadPageData::$pages; $page = array_pop($pages); @@ -34,7 +38,7 @@ public function testJsonGetPageAction() public function testHeadRoute() { $fixtures = array('Acme\BlogBundle\Tests\Fixtures\Entity\LoadPageData'); - $this->customSetUp($fixtures); + $this->loadFixtures($fixtures); $pages = LoadPageData::$pages; $page = array_pop($pages); @@ -45,7 +49,6 @@ public function testHeadRoute() public function testJsonNewPageAction() { - $this->client = static::createClient(); $this->client->request( 'GET', '/api/v1/pages/new.json', @@ -62,7 +65,6 @@ public function testJsonNewPageAction() public function testJsonPostPageAction() { - $this->client = static::createClient(); $this->client->request( 'POST', '/api/v1/pages.json', @@ -77,7 +79,6 @@ public function testJsonPostPageAction() public function testJsonPostPageActionShouldReturn400WithBadParameters() { - $this->client = static::createClient(); $this->client->request( 'POST', '/api/v1/pages.json', @@ -93,11 +94,13 @@ public function testJsonPostPageActionShouldReturn400WithBadParameters() public function testJsonPutPageActionShouldModify() { $fixtures = array('Acme\BlogBundle\Tests\Fixtures\Entity\LoadPageData'); - $this->customSetUp($fixtures); + $this->loadFixtures($fixtures); $pages = LoadPageData::$pages; $page = array_pop($pages); - $this->client = static::createClient(); + $this->client->request('GET', sprintf('/api/v1/pages/%d.json', $page->getId()), array('ACCEPT' => 'application/json')); + $this->assertEquals(200, $this->client->getResponse()->getStatusCode(), $this->client->getResponse()->getContent()); + $this->client->request( 'PUT', sprintf('/api/v1/pages/%d.json', $page->getId()), @@ -119,9 +122,7 @@ public function testJsonPutPageActionShouldModify() public function testJsonPutPageActionShouldCreate() { - $this->client = static::createClient(); $id = 0; - $this->client->request('GET', sprintf('/api/v1/pages/%d.json', $id), array('ACCEPT' => 'application/json')); $this->assertEquals(404, $this->client->getResponse()->getStatusCode(), $this->client->getResponse()->getContent()); @@ -141,11 +142,10 @@ public function testJsonPutPageActionShouldCreate() public function testJsonPatchPageAction() { $fixtures = array('Acme\BlogBundle\Tests\Fixtures\Entity\LoadPageData'); - $this->customSetUp($fixtures); + $this->loadFixtures($fixtures); $pages = LoadPageData::$pages; $page = array_pop($pages); - $this->client = static::createClient(); $this->client->request( 'PATCH', sprintf('/api/v1/pages/%d.json', $page->getId()), @@ -165,10 +165,6 @@ public function testJsonPatchPageAction() ); } - - - - protected function assertJsonResponse($response, $statusCode = 200, $checkValidJson = true, $contentType = 'application/json') { $this->assertEquals( @@ -187,4 +183,4 @@ protected function assertJsonResponse($response, $statusCode = 200, $checkValidJ ); } } -} +} \ No newline at end of file diff --git a/src/Acme/BlogBundle/Tests/Handler/PageHandlerTest.php b/src/Acme/BlogBundle/Tests/Handler/PageHandlerTest.php index c3a8ae6..ae09b0b 100644 --- a/src/Acme/BlogBundle/Tests/Handler/PageHandlerTest.php +++ b/src/Acme/BlogBundle/Tests/Handler/PageHandlerTest.php @@ -55,6 +55,23 @@ public function testGet() $this->pageHandler->get($id); } + public function testAll() + { + $offset = 1; + $limit = 2; + + $pages = $this->getPages(2); + $this->repository->expects($this->once())->method('findBy') + ->with(array(), null, $limit, $offset) + ->will($this->returnValue($pages)); + + $this->pageHandler = $this->createPageHandler($this->om, static::PAGE_CLASS, $this->formFactory); + + $all = $this->pageHandler->all($limit, $offset); + + $this->assertEquals($pages, $all); + } + public function testPost() { $title = 'title1'; @@ -193,6 +210,16 @@ protected function getPage() return new $pageClass(); } + + protected function getPages($maxPages = 5) + { + $pages = array(); + for($i = 0; $i < $maxPages; $i++) { + $pages[] = $this->getPage(); + } + + return $pages; + } } class DummyPage extends Page