Use Uuid with its new namespace

This commit is contained in:
Benoît Burnichon
2015-07-29 17:11:53 +02:00
parent 61160197a2
commit 8aca5f6126
11 changed files with 54 additions and 53 deletions

View File

@@ -76,7 +76,7 @@
"php-ffmpeg/php-ffmpeg": "~0.5.0", "php-ffmpeg/php-ffmpeg": "~0.5.0",
"php-xpdf/php-xpdf": "~0.2.1", "php-xpdf/php-xpdf": "~0.2.1",
"phpexiftool/phpexiftool": "dev-0.4.1-mwg-metadata-copy as 0.4.1", "phpexiftool/phpexiftool": "dev-0.4.1-mwg-metadata-copy as 0.4.1",
"rhumsaa/uuid": "~2.7", "ramsey/uuid": "^3.0",
"roave/security-advisories": "dev-master", "roave/security-advisories": "dev-master",
"silex/silex": "~1.2", "silex/silex": "~1.2",
"silex/web-profiler": "~1.0", "silex/web-profiler": "~1.0",

63
composer.lock generated
View File

@@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "d463b8379eb7ddd0bc5d3fdb878a0c37", "hash": "7d9ab9ff4c9c0fecf882d499173503b0",
"content-hash": "6d1bf999a101d0bbdcd5a8d3b94f4af4", "content-hash": "227f7ac4b6e8fef6249111662d317932",
"packages": [ "packages": [
{ {
"name": "alchemy-fr/tcpdf-clone", "name": "alchemy-fr/tcpdf-clone",
@@ -3941,46 +3941,45 @@
"time": "2012-12-21 11:40:51" "time": "2012-12-21 11:40:51"
}, },
{ {
"name": "rhumsaa/uuid", "name": "ramsey/uuid",
"version": "2.8.0", "version": "3.0.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/ramsey/rhumsaa-uuid.git", "url": "https://github.com/ramsey/uuid.git",
"reference": "cca98c652cac412c9c2f109c69e5532f313435fc" "reference": "3c84b9e2965a5fa666dec8617a3a66a8179c6ca8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/ramsey/rhumsaa-uuid/zipball/cca98c652cac412c9c2f109c69e5532f313435fc", "url": "https://api.github.com/repos/ramsey/uuid/zipball/3c84b9e2965a5fa666dec8617a3a66a8179c6ca8",
"reference": "cca98c652cac412c9c2f109c69e5532f313435fc", "reference": "3c84b9e2965a5fa666dec8617a3a66a8179c6ca8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.3.3" "php": ">=5.4"
},
"replace": {
"rhumsaa/uuid": "self.version"
}, },
"require-dev": { "require-dev": {
"doctrine/dbal": ">=2.3", "apigen/apigen": "^4.1",
"moontoast/math": "~1.1", "ircmaxell/random-lib": "^1.1",
"phpunit/phpunit": "~4.1", "jakub-onderka/php-parallel-lint": "^0.9.0",
"satooshi/php-coveralls": "~0.6", "moontoast/math": "^1.1",
"symfony/console": "~2.3" "phpunit/phpunit": "^4.7",
"satooshi/php-coveralls": "^0.6.1",
"squizlabs/php_codesniffer": "^2.3"
}, },
"suggest": { "suggest": {
"doctrine/dbal": "Allow the use of a UUID as doctrine field type.", "ext-uuid": "Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator",
"moontoast/math": "Support for converting UUID to 128-bit integer (in string form).", "ircmaxell/random-lib": "Provides RandomLib for use with the RandomLibAdapter",
"symfony/console": "Support for use of the bin/uuid command line tool." "moontoast/math": "Provides support for converting UUID to 128-bit integer (in string form).",
"ramsey/uuid-console": "A console application for generating UUIDs with ramsey/uuid",
"ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type."
}, },
"bin": [
"bin/uuid"
],
"type": "library", "type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.8.x-dev"
}
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Rhumsaa\\Uuid\\": "src/" "Ramsey\\Uuid\\": "src/"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@@ -3992,20 +3991,24 @@
"name": "Marijn Huizendveld", "name": "Marijn Huizendveld",
"email": "marijn.huizendveld@gmail.com" "email": "marijn.huizendveld@gmail.com"
}, },
{
"name": "Thibaud Fabre",
"email": "thibaud@aztech.io"
},
{ {
"name": "Ben Ramsey", "name": "Ben Ramsey",
"homepage": "http://benramsey.com" "email": "ben@benramsey.com",
"homepage": "https://benramsey.com"
} }
], ],
"description": "A PHP 5.3+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).", "description": "Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (UUID).",
"homepage": "https://github.com/ramsey/uuid", "homepage": "https://github.com/ramsey/uuid",
"keywords": [ "keywords": [
"guid", "guid",
"identifier", "identifier",
"uuid" "uuid"
], ],
"abandoned": "ramsey/uuid", "time": "2015-10-21 16:27:25"
"time": "2014-11-09 18:42:56"
}, },
{ {
"name": "roave/security-advisories", "name": "roave/security-advisories",

View File

@@ -12,20 +12,20 @@
namespace Alchemy\Phrasea\Border; namespace Alchemy\Phrasea\Border;
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Border\Attribute\AttributeInterface;
use Alchemy\Phrasea\Media\Type\Audio; use Alchemy\Phrasea\Media\Type\Audio;
use Alchemy\Phrasea\Media\Type\Document; use Alchemy\Phrasea\Media\Type\Document;
use Alchemy\Phrasea\Media\Type\Flash; use Alchemy\Phrasea\Media\Type\Flash;
use Alchemy\Phrasea\Media\Type\Image; use Alchemy\Phrasea\Media\Type\Image;
use Alchemy\Phrasea\Media\Type\Video; use Alchemy\Phrasea\Media\Type\Video;
use Alchemy\Phrasea\Border\Attribute\AttributeInterface;
use Alchemy\Phrasea\Metadata\TagFactory; use Alchemy\Phrasea\Metadata\TagFactory;
use MediaVorus\Media\MediaInterface;
use MediaVorus\Exception\FileNotFoundException; use MediaVorus\Exception\FileNotFoundException;
use MediaVorus\Media\MediaInterface;
use PHPExiftool\Driver\Metadata\Metadata; use PHPExiftool\Driver\Metadata\Metadata;
use PHPExiftool\Driver\Metadata\MetadataBag as ExiftoolMetadataBag; use PHPExiftool\Driver\Metadata\MetadataBag as ExiftoolMetadataBag;
use PHPExiftool\Driver\Value\Mono as MonoValue; use PHPExiftool\Driver\Value\Mono as MonoValue;
use PHPExiftool\Exception\ExceptionInterface as PHPExiftoolException; use PHPExiftool\Exception\ExceptionInterface as PHPExiftoolException;
use Rhumsaa\Uuid\Uuid; use Ramsey\Uuid\Uuid;
/** /**
* Phraseanet candidate File package * Phraseanet candidate File package

View File

@@ -13,7 +13,7 @@ namespace Alchemy\Phrasea\Command\Upgrade;
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
use Rhumsaa\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;

View File

@@ -9,7 +9,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
use Rhumsaa\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Interface class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Interface

View File

@@ -37,7 +37,7 @@ use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
use Doctrine\ORM\EntityManager; use Doctrine\ORM\EntityManager;
use MediaVorus\Media\MediaInterface; use MediaVorus\Media\MediaInterface;
use MediaVorus\MediaVorus; use MediaVorus\MediaVorus;
use Rhumsaa\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use Symfony\Component\HttpFoundation\File\File as SymfoFile; use Symfony\Component\HttpFoundation\File\File as SymfoFile;
class record_adapter implements RecordInterface, cache_cacheableInterface class record_adapter implements RecordInterface, cache_cacheableInterface

View File

@@ -2,20 +2,20 @@
namespace Alchemy\Tests\Phrasea\Border; namespace Alchemy\Tests\Phrasea\Border;
use Alchemy\Phrasea\Border\Attribute\Metadata;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
use Alchemy\Phrasea\Media\Type\Image;
use Alchemy\Phrasea\Media\Type\Flash;
use Alchemy\Phrasea\Media\Type\Audio; use Alchemy\Phrasea\Media\Type\Audio;
use Alchemy\Phrasea\Media\Type\Video;
use Alchemy\Phrasea\Media\Type\Document; use Alchemy\Phrasea\Media\Type\Document;
use Alchemy\Phrasea\Media\Type\Flash;
use Alchemy\Phrasea\Media\Type\Image;
use Alchemy\Phrasea\Media\Type\Video;
use MediaVorus\Media\MediaInterface; use MediaVorus\Media\MediaInterface;
use PHPExiftool\Driver\Metadata\Metadata as PHPExiftoolMetadata;
use PHPExiftool\Driver\Tag\IPTC\Keywords;
use PHPExiftool\Driver\Tag\MXF\ObjectName; use PHPExiftool\Driver\Tag\MXF\ObjectName;
use PHPExiftool\Driver\Value\Mono; use PHPExiftool\Driver\Value\Mono;
use PHPExiftool\Driver\Tag\IPTC\Keywords;
use PHPExiftool\Driver\Value\Multi; use PHPExiftool\Driver\Value\Multi;
use PHPExiftool\Driver\Metadata\Metadata as PHPExiftoolMetadata; use Ramsey\Uuid\Uuid;
use Alchemy\Phrasea\Border\Attribute\Metadata;
use Rhumsaa\Uuid\Uuid;
/** /**
* @group functional * @group functional

View File

@@ -5,7 +5,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Authentication\ACLProvider; use Alchemy\Phrasea\Authentication\ACLProvider;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
use Rhumsaa\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use Symfony\Component\HttpKernel\Client; use Symfony\Component\HttpKernel\Client;
/** /**

View File

@@ -4,7 +4,7 @@ namespace Alchemy\Tests\Phrasea\Controller\Admin;
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
use Rhumsaa\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/** /**

View File

@@ -3,11 +3,10 @@
namespace Alchemy\Tests\Phrasea\Controller\Api; namespace Alchemy\Tests\Phrasea\Controller\Api;
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Authentication\Context;
use Alchemy\Phrasea\Border\File; use Alchemy\Phrasea\Border\File;
use Alchemy\Phrasea\Controller\Api\V1Controller; use Alchemy\Phrasea\Controller\Api\V1Controller;
use Alchemy\Phrasea\ControllerProvider\Api\V1;
use Alchemy\Phrasea\Core\PhraseaEvents; use Alchemy\Phrasea\Core\PhraseaEvents;
use Alchemy\Phrasea\Authentication\Context;
use Alchemy\Phrasea\Model\Entities\ApiOauthToken; use Alchemy\Phrasea\Model\Entities\ApiOauthToken;
use Alchemy\Phrasea\Model\Entities\LazaretSession; use Alchemy\Phrasea\Model\Entities\LazaretSession;
use Alchemy\Phrasea\Model\Entities\Task; use Alchemy\Phrasea\Model\Entities\Task;
@@ -15,9 +14,9 @@ use Alchemy\Phrasea\Model\Entities\User;
use Alchemy\Phrasea\SearchEngine\SearchEngineOptions; use Alchemy\Phrasea\SearchEngine\SearchEngineOptions;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
use Guzzle\Common\Exception\GuzzleException; use Guzzle\Common\Exception\GuzzleException;
use Rhumsaa\Uuid\Uuid; use Ramsey\Uuid\Uuid;
use Symfony\Component\HttpKernel\Client;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Client;
abstract class ApiTestCase extends \PhraseanetWebTestCase abstract class ApiTestCase extends \PhraseanetWebTestCase
{ {

View File

@@ -1,10 +1,9 @@
<?php <?php
use Alchemy\Phrasea\Media\TechnicalDataSet;
use Rhumsaa\Uuid\Uuid;
use Alchemy\Phrasea\Core\PhraseaEvents; use Alchemy\Phrasea\Core\PhraseaEvents;
use Symfony\Component\EventDispatcher\Event;
use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
use Ramsey\Uuid\Uuid;
use Symfony\Component\EventDispatcher\Event;
/** /**
* @group functional * @group functional