Skip to content

Commit 4fcbd99

Browse files
committed
Fixed rebase
1 parent 0054bbc commit 4fcbd99

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"symfony/serializer": "~2.3",
1111
"symfony/yaml": "~2.3",
1212
"symfony/dependency-injection": "~2.3",
13-
"dantleech/glob": "~0.1"
13+
"dantleech/glob-finder": "~0.1"
1414
},
1515
"minimum-stability": "dev",
1616
"require-dev": {

src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function execute(InputInterface $input, OutputInterface $output)
6262
$nodes = array($session->getNodeByPathOrIdentifier($path));
6363
$filter = null;
6464
} catch (\Exception $e) {
65-
$parentPath = $this->getHelper('path')->getParentPath($path);
65+
$parentPath = $this->get('helper.path')->getParentPath($path);
6666

6767
$filter = substr($path, strlen($parentPath));
6868

src/PHPCR/Shell/Phpcr/PhpcrSession.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use PHPCR\CredentialsInterface;
77
use PHPCR\Util\UUIDHelper;
88
use PHPCR\PathNotFoundException;
9+
use DTL\Glob\Finder\PhpcrTraversalFinder;
910

1011
/**
1112
* Custom session wrapper for PHPCR Shell
@@ -18,10 +19,12 @@ class PhpcrSession implements SessionInterface
1819
{
1920
protected $session;
2021
protected $cwd = '/';
22+
protected $finder;
2123

22-
public function __construct(SessionInterface $session)
24+
public function __construct(SessionInterface $session, $finder = null)
2325
{
2426
$this->session = $session;
27+
$this->finder = $finder ? : new PhpcrTraversalFinder($session);
2528
}
2629

2730
/**

0 commit comments

Comments
 (0)