mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
[SearchEngine] Fix namespaces
This commit is contained in:
@@ -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')));
|
||||||
|
@@ -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));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user