Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Oct 26, 2015
1 parent f85984a commit 02caa2c
Show file tree
Hide file tree
Showing 30 changed files with 113 additions and 113 deletions.
10 changes: 5 additions & 5 deletions Command/AbstractCommand.php
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<?php
namespace Kaliop\Migration\Command;
namespace Kaliop\eZMigrationBundle\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Doctrine\DBAL\DriverManager;
use Kaliop\Migration\Core\Configuration;
use Kaliop\eZMigrationBundle\Core\Configuration;

/**
* Class AbstractCommand
*
* Base command class that all migration commands extend from.
*
* @package Kaliop\Migration\Command
* @package Kaliop\eZMigrationBundle\Command
*/
abstract class AbstractCommand extends Command
{
/**
* The migration configuration object.
*
* @var \Kaliop\Migration\Core\Configuration
* @var \Kaliop\eZMigrationBundle\Core\Configuration
*/
private $configuration;

Expand Down Expand Up @@ -58,7 +58,7 @@ public function getConfiguration( InputInterface $input, OutputInterface $output
$configuration->versionDirectory = $container->getParameter( 'kaliop_bundle_migration.version_directory' );
$configuration->versionTableName = $container->getParameter( 'kaliop_bundle_migration.table_name' );
$this->configuration = $configuration;

}

return $this->configuration;
Expand Down
10 changes: 5 additions & 5 deletions Command/GenerateCommand.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Kaliop\Migration\Command;

namespace Kaliop\eZMigrationBundle\Command;

use Kaliop\Migration\Core\Configuration;
use Kaliop\eZMigrationBundle\Core\Configuration;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
Expand All @@ -15,7 +15,7 @@ class GenerateCommand extends AbstractCommand {
namespace <namespace>;
use Kaliop\Migration\Interfaces\VersionInterface;
use Kaliop\eZMigrationBundle\Interfaces\VersionInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
Expand Down Expand Up @@ -68,7 +68,7 @@ protected function configure() {
->setDescription('Generate a blank migration definition file.')
->addOption('type', null, InputOption::VALUE_OPTIONAL, 'The type of migration file to generate. (yml, php, sql)', 'yml')
->addOption('dbserver', null, InputOption::VALUE_OPTIONAL, 'The type of the database server the sql migration is for. (mysql, postgre)', 'mysql')
->addArgument('bundle', InputOption::VALUE_REQUIRED, 'The bundle to generate the migration definition file in. eg.: KaliopBundleMigrationBundle' )
->addArgument('bundle', InputOption::VALUE_REQUIRED, 'The bundle to generate the migration definition file in. eg.: AcmeMigrationBundle' )
->setHelp(<<<EOT
The <info>kaliop:migration:generate</info> command generates a skeleton migration definition file:
Expand Down Expand Up @@ -190,4 +190,4 @@ protected function generateMigrationFile(Configuration $configuration, $version,

return $path;
}
}
}
10 changes: 5 additions & 5 deletions Command/StatusCommand.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Kaliop\Migration\Command;
namespace Kaliop\eZMigrationBundle\Command;

use Kaliop\Migration\Command\AbstractCommand;
use Kaliop\eZMigrationBundle\Command\AbstractCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand All @@ -11,7 +11,7 @@
*
* Command to display the status of migrations.
*
* @package Kaliop\Migration\Command
* @package Kaliop\eZMigrationBundle\Command
*/
class StatusCommand extends AbstractCommand
{
Expand Down Expand Up @@ -66,7 +66,7 @@ public function execute(InputInterface $input, OutputInterface $output)

//Check paths for version files

/* @var $configuration \Kaliop\Migration\Core\Configuration */
/* @var $configuration \Kaliop\eZMigrationBundle\Core\Configuration */
$configuration->registerVersionFromDirectories($paths);

if ($bundleVersions = $configuration->getVersions()) {
Expand All @@ -78,7 +78,7 @@ public function execute(InputInterface $input, OutputInterface $output)
$output->writeln("<info>{$bundle}</info>:");

foreach ($versions as $versionNumber => $versionClass) {
/** @var $versionClass \Kaliop\Migration\Core\Version */
/** @var $versionClass \Kaliop\eZMigrationBundle\Core\Version */
$isMigrated = array_key_exists($bundle, $migratedVersions) && in_array(
$versionNumber,
$migratedVersions[$bundle]
Expand Down
12 changes: 6 additions & 6 deletions Command/UpdateCommand.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
namespace Kaliop\Migration\Command;
namespace Kaliop\eZMigrationBundle\Command;

use Kaliop\Migration\Command\AbstractCommand;
use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Command\AbstractCommand;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;
use Symfony\Component\Console\Input\ArrayInput;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
Expand All @@ -14,7 +14,7 @@
*
* Command to execute the available migration definitions.
*
* @package Kaliop\Migration\Command
* @package Kaliop\eZMigrationBundle\Command
*/
class UpdateCommand extends AbstractCommand
{
Expand Down Expand Up @@ -65,7 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// Get paths to look for version files in
$versions = $input->getOption('versions');

/** @var $configuration \Kaliop\Migration\Core\Configuration */
/** @var $configuration \Kaliop\eZMigrationBundle\Core\Configuration */
$configuration = $this->getConfiguration($input, $output);

if ($versions) {
Expand Down Expand Up @@ -94,7 +94,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

if ($versions) {
foreach ($versions as $versionNumber => $versionClass) {
/** @var $versionClass \Kaliop\Migration\Core\Version */
/** @var $versionClass \Kaliop\eZMigrationBundle\Core\Version */
$output->writeln(
"<comment>></comment> " . date(
"Y-m-d H:i:s",
Expand Down
10 changes: 5 additions & 5 deletions Core/API/Managers/AbstractManager.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Kaliop\Migration\Core\API\Managers;
namespace Kaliop\eZMigrationBundle\Core\API\Managers;

use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\Migration\Interfaces\API\ManagerInterface;
use Kaliop\Migration\Interfaces\BundleAwareInterface;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Interfaces\API\ManagerInterface;
use Kaliop\eZMigrationBundle\Interfaces\BundleAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
Expand All @@ -14,7 +14,7 @@
*
* The core manager class that all migration action managers inherit from.
*
* @package Kaliop\Migration\Core\API\Managers
* @package Kaliop\eZMigrationBundle\Core\API\Managers
*/
abstract class AbstractManager implements ManagerInterface, ContainerAwareInterface, BundleAwareInterface
{
Expand Down
8 changes: 4 additions & 4 deletions Core/API/Managers/ContentManager.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Kaliop\Migration\Core\API\Managers;
namespace Kaliop\eZMigrationBundle\Core\API\Managers;

use Kaliop\Migration\Core\API\Managers\AbstractManager;
use Kaliop\eZMigrationBundle\Core\API\Managers\AbstractManager;
use eZ\Publish\API\Repository\Values\Content\ContentCreateStruct;
use eZ\Publish\API\Repository\Values\Content\ContentUpdateStruct;
use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;
use eZ\Publish\Core\FieldType\Image\Value as ImageValue;
use eZ\Publish\Core\FieldType\BinaryFile\Value as BinaryFileValue;
use eZ\Publish\Core\FieldType\Checkbox\Value as CheckboxValue;
Expand All @@ -16,7 +16,7 @@
* Class implementing the actions for managing (create/update/delete) Content in the system through
* migrations and abstracts away the eZ Publish Public API.
*
* @package Kaliop\Migration\Core\API\Managers
* @package Kaliop\eZMigrationBundle\Core\API\Managers
*/
class ContentManager extends AbstractManager
{
Expand Down
6 changes: 3 additions & 3 deletions Core/API/Managers/ContentTypeManager.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace Kaliop\Migration\Core\API\Managers;
namespace Kaliop\eZMigrationBundle\Core\API\Managers;

use eZ\Publish\API\Repository\ContentTypeService;
use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;

/**
* Class ContentTypeManager
*
* Methods to handle content type migrations
*
* @package Kaliop\Migration\Core\API\Managers
* @package Kaliop\eZMigrationBundle\Core\API\Managers
*/
class ContentTypeManager extends AbstractManager
{
Expand Down
6 changes: 3 additions & 3 deletions Core/API/Managers/LocationManager.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Kaliop\Migration\Core\API\Managers;
namespace Kaliop\eZMigrationBundle\Core\API\Managers;

use eZ\Publish\API\Repository\Values\Content\Location;
use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;

/**
* Class LocationManager
* @package Kaliop\Migration\Core\API\Managers
* @package Kaliop\eZMigrationBundle\Core\API\Managers
*/
class LocationManager extends AbstractManager
{
Expand Down
6 changes: 3 additions & 3 deletions Core/API/Managers/RoleManager.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php

namespace Kaliop\Migration\Core\API\Managers;
namespace Kaliop\eZMigrationBundle\Core\API\Managers;


use eZ\Publish\API\Repository\Values\User\Role;
use eZ\Publish\API\Repository\RoleService;
use eZ\Publish\API\Repository\UserService;
use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;

/**
* Class RoleManager
*
* Handles the role migration definitions.
*
* @package Kaliop\Migration\Core\API\Managers
* @package Kaliop\eZMigrationBundle\Core\API\Managers
*/
class RoleManager extends AbstractManager
{
Expand Down
6 changes: 3 additions & 3 deletions Core/API/Managers/UserGroupManager.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?php

namespace Kaliop\Migration\Core\API\Managers;
namespace Kaliop\eZMigrationBundle\Core\API\Managers;

use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;
use eZ\Publish\API\Repository\Values\User\UserGroup;

/**
* Class UserGroupManager
*
* Handles user group migrations.
*
* @package Kaliop\Migration\Core\API\Managers
* @package Kaliop\eZMigrationBundle\Core\API\Managers
*/
class UserGroupManager extends AbstractManager
{
Expand Down
6 changes: 3 additions & 3 deletions Core/API/Managers/UserManager.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace Kaliop\Migration\Core\API\Managers;
namespace Kaliop\eZMigrationBundle\Core\API\Managers;

use eZ\Publish\API\Repository\Values\Content\Query\Criterion;
use eZ\Publish\API\Repository\Values\Content;
use Kaliop\Migration\Core\API\ReferenceHandler;
use Kaliop\eZMigrationBundle\Core\API\ReferenceHandler;

/**
* Class UserManager
*
* Handle user migrations.
*
* @package Kaliop\Migration\Core\API\Managers
* @package Kaliop\eZMigrationBundle\Core\API\Managers
*/
class UserManager extends AbstractManager
{
Expand Down
4 changes: 2 additions & 2 deletions Core/API/ReferenceHandler.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Kaliop\Migration\Core\API;
namespace Kaliop\eZMigrationBundle\Core\API;

/**
* Class ReferenceHandler
*
* Handle references.
*
* @package Kaliop\Migration\Core\API
* @package Kaliop\eZMigrationBundle\Core\API
*/
class ReferenceHandler
{
Expand Down
14 changes: 7 additions & 7 deletions Core/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Kaliop\Migration\Core;
namespace Kaliop\eZMigrationBundle\Core;

use eZ\Bundle\EzPublishCoreBundle\Console\Application;
use Kaliop\Migration\Core\DefinitionHandlers\SQLDefinitionHandler;
use Kaliop\Migration\Core\DefinitionHandlers\YamlDefinitionHandler;
use Kaliop\Migration\Interfaces\BundleAwareInterface;
use Kaliop\eZMigrationBundle\Core\DefinitionHandlers\SQLDefinitionHandler;
use Kaliop\eZMigrationBundle\Core\DefinitionHandlers\YamlDefinitionHandler;
use Kaliop\eZMigrationBundle\Interfaces\BundleAwareInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
Expand All @@ -17,7 +17,7 @@
*
* Main configuration object holding settings for the migrations.
*
* @package Kaliop\Migration\Core
* @package Kaliop\eZMigrationBundle\Core
*/
class Configuration
{
Expand Down Expand Up @@ -465,7 +465,7 @@ public function injectContainerIntoMigrations(ContainerInterface $container)
{
foreach ($this->versions as $bundle => $versions) {
foreach ($versions as $version) {
/** @var $version \Kaliop\Migration\Core\Version */
/** @var $version \Kaliop\eZMigrationBundle\Core\Version */
if ($version->migration instanceof ContainerAwareInterface) {
$version->migration->setContainer($container);
}
Expand All @@ -484,7 +484,7 @@ public function injectBundleIntoMigration(KernelInterface $kernel)
$bundleObject = $kernel->getBundle($bundle);

foreach ($versions as $version) {
/** @var $version \Kaliop\Migration\Core\Version */
/** @var $version \Kaliop\eZMigrationBundle\Core\Version */
if ($version->migration instanceof BundleAwareInterface) {
$version->migration->setBundle($bundleObject);
}
Expand Down
6 changes: 3 additions & 3 deletions Core/DefinitionHandlers/SQLDefinitionHandler.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Kaliop\Migration\Core\DefinitionHandlers;
namespace Kaliop\eZMigrationBundle\Core\DefinitionHandlers;

use Kaliop\Migration\Interfaces\BundleAwareInterface;
use Kaliop\Migration\Interfaces\VersionInterface;
use Kaliop\eZMigrationBundle\Interfaces\BundleAwareInterface;
use Kaliop\eZMigrationBundle\Interfaces\VersionInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
Expand Down
Loading

0 comments on commit 02caa2c

Please sign in to comment.