-
Notifications
You must be signed in to change notification settings - Fork 356
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
Move Phpseclib adapter into its own namespace #441
Move Phpseclib adapter into its own namespace #441
Conversation
use Gaufrette\Adapter; | ||
use phpseclib\Net\SFTP as SecLibSFTP; | ||
use Gaufrette\Filesystem; | ||
use Gaufrette\File; | ||
|
||
/** | ||
* @deprecated 0.4 This adapter is deprecated since version 0.4. Use Gaufrette\Adapters\Phpseclib\Sftp instead. | ||
*/ | ||
class PhpseclibSftp implements Adapter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the old classe should extends from the new one to not duplicates the code.
}, | ||
"require-dev": { | ||
"phpspec/phpspec": "^3.1", | ||
"phpunit/phpunit": "3.7.*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3.7 ? Seriously ? This is unmaintained since 5 years at least.
Use ^4.8.35 || ^5.7
instead (and then work on switching to the namespaced test case and add || ^6
in the condition)
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
bootstrap="tests/bootstrap.php.dist" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why .dist ?
$baseDir = dirname(__DIR__); | ||
|
||
$loader = require __DIR__.'/../vendor/autoload.php'; | ||
$loader->add('Gaufrette', array($baseDir.'/vendor/knplabs/gaufrette/tests/')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use autoload-dev
instead of altering the configuration of the generated loader. this will make this whole file useless
|
||
$loader = require __DIR__.'/../vendor/autoload.php'; | ||
$loader->add('Gaufrette', array($baseDir.'/vendor/knplabs/gaufrette/tests/')); | ||
$loader->register(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useless as it is already registered in autoload.php
@@ -2,11 +2,16 @@ | |||
|
|||
namespace Gaufrette\Adapter; | |||
|
|||
@trigger_error('The '.__NAMESPACE__.'\PhpseclibSftp is deprecated since version 0.4. Use Gaufrette\Adapters\Phpseclib\Sftp instead.', E_USER_DEPRECATED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong namespace. Adapter
is not a plural
dc1ba4d
to
753c1a5
Compare
7c789a9
to
4c00d7f
Compare
e6d8a48
to
382ebc7
Compare
382ebc7
to
3eda698
Compare
See #440