Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix YaEtlException ns #18

Merged
merged 1 commit into from
Sep 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@
"autoload": {
"classmap": [
"src"
],
"files": [
"src/support/deprecated.php"
]
},
"extra": {
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/AggregateExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
use fab2s\NodalFlow\Nodes\AggregateNodeInterface;
use fab2s\NodalFlow\Nodes\PayloadNodeAbstract;
use fab2s\NodalFlow\Nodes\TraversableNodeInterface;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtl;
use fab2s\YaEtl\YaEtlException;

/**
* class AggregateExtractor
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/File/CsvExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
namespace fab2s\YaEtl\Extractors\File;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Traits\CsvHandlerTrait;
use fab2s\YaEtl\YaEtlException;

/**
* Class CsvExtractor
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/File/FileExtractorAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

use fab2s\Bom\Bom;
use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Extractors\ExtractorAbstract;
use fab2s\YaEtl\Traits\FileHandlerTrait;
use fab2s\YaEtl\YaEtlException;

/**
* Class FileExtractorAbstract
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/OnClause.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace fab2s\YaEtl\Extractors;

use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtlException;

/**
* class OnClause
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/PdoExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace fab2s\YaEtl\Extractors;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtlException;

/**
* Class PdoExtractor
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/PdoExtractorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace fab2s\YaEtl\Extractors;

use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtlException;

/**
* trait PdoExtractorTrait
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/PdoUniqueKeyExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace fab2s\YaEtl\Extractors;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtlException;

/**
* class PdoUniqueKeyExtractor
Expand Down
2 changes: 1 addition & 1 deletion src/Extractors/UniqueKeyExtractorAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace fab2s\YaEtl\Extractors;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtlException;

/**
* Abstract Class UniqueKeyExtractorAbstract
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/Extractors/DbExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
namespace fab2s\YaEtl\Laravel\Extractors;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Extractors\DbExtractorAbstract;
use fab2s\YaEtl\Extractors\PaginatedQueryInterface;
use fab2s\YaEtl\Extractors\PdoExtractor;
use fab2s\YaEtl\YaEtlException;
use Illuminate\Database\Query\Builder;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/Extractors/DelayedExtractQueryTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

namespace fab2s\YaEtl\Laravel\Extractors;

use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Extractors\DbExtractorAbstract;
use fab2s\YaEtl\YaEtlException;
use Illuminate\Database\Query\Builder;

trait DelayedExtractQueryTrait
Expand Down
2 changes: 1 addition & 1 deletion src/Laravel/Extractors/UniqueKeyExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
namespace fab2s\YaEtl\Laravel\Extractors;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Extractors\PaginatedQueryInterface;
use fab2s\YaEtl\Extractors\PdoUniqueKeyExtractor;
use fab2s\YaEtl\Extractors\UniqueKeyExtractorAbstract;
use fab2s\YaEtl\YaEtlException;
use Illuminate\Database\Query\Builder;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Loaders/File/CsvLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
namespace fab2s\YaEtl\Loaders\File;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Traits\CsvHandlerTrait;
use fab2s\YaEtl\YaEtlException;

/**
* Class CsvLoader
Expand Down
2 changes: 1 addition & 1 deletion src/Loaders/File/FileLoaderAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
namespace fab2s\YaEtl\Loaders\File;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Loaders\LoaderAbstract;
use fab2s\YaEtl\Traits\FileHandlerTrait;
use fab2s\YaEtl\YaEtlException;

/**
* Class FileLoaderAbstract
Expand Down
2 changes: 1 addition & 1 deletion src/Qualifiers/QualifierAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use fab2s\NodalFlow\Flows\InterrupterInterface;
use fab2s\NodalFlow\Nodes\NodeAbstract;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtlException;

/**
* Abstract Class QualifierAbstract
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/FileHandlerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace fab2s\YaEtl\Traits;

use fab2s\Bom\Bom;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\YaEtlException;

/**
* Trait FileHandlerTrait
Expand Down
2 changes: 1 addition & 1 deletion src/Transformers/Arrays/ArrayWalkRecursiveTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
namespace fab2s\YaEtl\Transformers\Arrays;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Transformers\TransformerAbstract;
use fab2s\YaEtl\YaEtlException;

/**
* Class ArrayWalkRecursiveTransformer
Expand Down
2 changes: 1 addition & 1 deletion src/Transformers/Arrays/ArrayWalkTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
namespace fab2s\YaEtl\Transformers\Arrays;

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Transformers\TransformerAbstract;
use fab2s\YaEtl\YaEtlException;

/**
* Class ArrayWalkTransformer
Expand Down
1 change: 0 additions & 1 deletion src/YaEtl.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
use fab2s\NodalFlow\Nodes\BranchNodeInterface;
use fab2s\NodalFlow\Nodes\NodeInterface;
use fab2s\NodalFlow\Nodes\TraversableNodeInterface;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Events\YaEtlEvent;
use fab2s\YaEtl\Extractors\AggregateExtractor;
use fab2s\YaEtl\Extractors\ExtractorInterface;
Expand Down
4 changes: 3 additions & 1 deletion src/YaEtlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
* find in the LICENSE file or at https://opensource.org/licenses/MIT
*/

namespace fab2s\NodalFlow;
namespace fab2s\YaEtl;

use fab2s\NodalFlow\NodalFlowException;

/**
* Class YaEtlException
Expand Down
21 changes: 21 additions & 0 deletions src/support/deprecated.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

/*
* This file is part of YaEtl
* (c) Fabrice de Stefanis / https://github.com/fab2s/YaEtl
* This source file is licensed under the MIT license which you will
* find in the LICENSE file or at https://opensource.org/licenses/MIT
*/

namespace {
class_alias(\fab2s\YaEtl\YaEtlException::class, \fab2s\NodalFlow\YaEtlException::class);
}

namespace fab2s\NodalFlow {
if (!class_exists(YaEtlException::class)) {
/** @deprecated YaEtlException this is intended to help IDEs */
class YaEtlException
{
}
}
}
2 changes: 1 addition & 1 deletion tests/FileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
*/

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Extractors\CallableExtractor;
use fab2s\YaEtl\Extractors\File\CsvExtractor;
use fab2s\YaEtl\Extractors\File\FileExtractorAbstract;
use fab2s\YaEtl\Extractors\File\LineExtractor;
use fab2s\YaEtl\Loaders\File\CsvLoader;
use fab2s\YaEtl\Transformers\CallableTransformer;
use fab2s\YaEtl\YaEtl;
use fab2s\YaEtl\YaEtlException;

/**
* Class FileTest
Expand Down
2 changes: 1 addition & 1 deletion tests/FromTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
*/

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Extractors\PdoExtractor;
use fab2s\YaEtl\Extractors\PdoUniqueKeyExtractor;
use fab2s\YaEtl\Transformers\CallableTransformer;
use fab2s\YaEtl\Transformers\NoOpTransformer;
use fab2s\YaEtl\YaEtl;
use fab2s\YaEtl\YaEtlException;

/**
* Class FromTest
Expand Down
2 changes: 1 addition & 1 deletion tests/JoinTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
*/

use fab2s\NodalFlow\NodalFlowException;
use fab2s\NodalFlow\YaEtlException;
use fab2s\YaEtl\Extractors\OnClause;
use fab2s\YaEtl\Extractors\PdoUniqueKeyExtractor;
use fab2s\YaEtl\YaEtl;
use fab2s\YaEtl\YaEtlException;

/**
* Class JoinTest
Expand Down