Merge pull request #55 from open-sausages/pulls/4.0/namespace-everything

Update for framework namespacing
This commit is contained in:
Ingo Schommer 2016-09-08 16:11:26 +12:00 committed by GitHub
commit 38dcdff18e
6 changed files with 13 additions and 14 deletions

View File

@ -1,5 +1,7 @@
<?php
use SilverStripe\Dev\Install\DatabaseAdapterRegistry;
// PDO Postgre database
DatabaseAdapterRegistry::register(array(
/** @skipUpgrade */

View File

@ -2,15 +2,15 @@
namespace SilverStripe\PostgreSQL;
use Injector;
use SilverStripe\Framework\Core\Configurable;
use SilverStripe\Core\Config\Configurable;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\ORM\DB;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\ArrayList;
use SilverStripe\ORM\Connect\SS_Database;
use SilverStripe\ORM\PaginatedList;
use ErrorException;
use Exception;
use PaginatedList;
/**
* PostgreSQL connector class.
@ -396,7 +396,7 @@ class PostgreSQLDatabase extends SS_Database
// Make column selection lists
$pageClass = 'SilverStripe\\CMS\\Model\\SiteTree';
$fileClass = 'File';
$fileClass = 'SilverStripe\\Assets\\File';
$select = array(
$pageClass => array(
'"ClassName"',

View File

@ -2,10 +2,10 @@
namespace SilverStripe\PostgreSQL;
use DatabaseConfigurationHelper;
use PDO;
use SilverStripe\Dev\Install\DatabaseAdapterRegistry;
use SilverStripe\Dev\Install\DatabaseConfigurationHelper;
use Exception;
use DatabaseAdapterRegistry;
use PDO;
/**
* This is a helper class for the SS installer.

View File

@ -2,9 +2,9 @@
namespace SilverStripe\PostgreSQL;
use SilverStripe\Dev\Deprecation;
use SilverStripe\ORM\Connect\DBSchemaManager;
use SilverStripe\ORM\DB;
use Deprecation;
/**
* PostgreSQL schema manager

View File

@ -1,12 +1,8 @@
<?php
use SilverStripe\Dev\SapphireTest;
use SilverStripe\PostgreSQL\PostgreSQLConnector;
/**
* Description of PostgreSQLConnectorTest
*
* @author Damian
*/
class PostgreSQLConnectorTest extends SapphireTest
{
public function testSubstitutesPlaceholders()

View File

@ -1,7 +1,8 @@
<?php
use SilverStripe\ORM\DB;
use SilverStripe\Dev\SapphireTest;
use SilverStripe\ORM\DataObject;
use SilverStripe\ORM\DB;
use SilverStripe\PostgreSQL\PostgreSQLDatabase;
/**