mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
47 lines
966 B
PHP
47 lines
966 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2013 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Alchemy\Phrasea\Setup\Version\Probe;
|
|
|
|
use Alchemy\Phrasea\Application;
|
|
use Alchemy\Phrasea\Setup\Version\Migration\Migration31;
|
|
|
|
class Probe31 implements ProbeInterface
|
|
{
|
|
private $app;
|
|
|
|
public function __construct(Application $app)
|
|
{
|
|
$this->app = $app;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function isMigrable()
|
|
{
|
|
/**
|
|
* We can not use registry to inject a path as the install is not yet done
|
|
*/
|
|
|
|
return is_file(__DIR__ . "/../../../../../../config/connexion.inc")
|
|
&& is_file(__DIR__ . "/../../../../../../config/_GV.php");
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function getMigration()
|
|
{
|
|
return new Migration31($this->app);
|
|
}
|
|
}
|