[SearchEngine] Fix namespaces

This commit is contained in:
Romain Neutron
2012-10-05 00:19:50 +02:00
parent 0a7c479c81
commit 4f889ddd7e
2 changed files with 4 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
*/ */
use Alchemy\Phrasea\Application; use Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Border\File;
use Alchemy\Phrasea\Border\Attribute\Status; use Alchemy\Phrasea\Border\Attribute\Status;
use Alchemy\Phrasea\Border\Manager as BorderManager; use Alchemy\Phrasea\Border\Manager as BorderManager;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
@@ -663,7 +664,7 @@ class API_V1_adapter extends API_V1_Abstract
$media = $app['mediavorus']->guess($file->getPathname()); $media = $app['mediavorus']->guess($file->getPathname());
$Package = new Alchemy\Phrasea\Border\File($this->app, $media, $collection, $file->getClientOriginalName()); $Package = new File($this->app, $media, $collection, $file->getClientOriginalName());
if ($request->get('status')) { if ($request->get('status')) {
$Package->addAttribute(new Status($app, $request->get('status'))); $Package->addAttribute(new Status($app, $request->get('status')));

View File

@@ -8,6 +8,7 @@
* file that was distributed with this source code. * file that was distributed with this source code.
*/ */
use Alchemy\Phrasea\Border\File;
use Alchemy\Phrasea\Metadata\Tag as PhraseaTag; use Alchemy\Phrasea\Metadata\Tag as PhraseaTag;
use Alchemy\Phrasea\Border\Attribute as BorderAttribute; use Alchemy\Phrasea\Border\Attribute as BorderAttribute;
use Alchemy\Phrasea\Border\MetadataBag; use Alchemy\Phrasea\Border\MetadataBag;
@@ -1687,7 +1688,7 @@ class task_period_archive extends task_abstract
$status = databox_status::operation_or($this->dependencyContainer, $status, $captionStatus); $status = databox_status::operation_or($this->dependencyContainer, $status, $captionStatus);
} }
} }
$file = new \Alchemy\Phrasea\Border\File($this->dependencyContainer, $media, $collection); $file = new File($this->dependencyContainer, $media, $collection);
$file->addAttribute(new BorderAttribute\Status($this->dependencyContainer, $status)); $file->addAttribute(new BorderAttribute\Status($this->dependencyContainer, $status));