Skip to content

Commit 62bd139

Browse files
committed
"Fixed" deprecation warnings
1 parent 76eb0ac commit 62bd139

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

src/PHPCR/Shell/Console/Application/ShellApplication.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
use Symfony\Component\Console\Input\ArrayInput;
1010
use Symfony\Component\Console\Input\InputInterface;
1111
use Symfony\Component\Console\Output\OutputInterface;
12+
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
13+
use Symfony\Component\EventDispatcher\EventDispatcher;
1214

1315
use PHPCR\Shell\Console\Command\Phpcr as CommandPhpcr;
1416
use PHPCR\Shell\Console\Command\Shell as CommandShell;
@@ -18,8 +20,6 @@
1820
use PHPCR\Shell\Event\PhpcrShellEvents;
1921
use PHPCR\Shell\Console\Command\Phpcr\PhpcrShellCommand;
2022
use PHPCR\Shell\Config\Profile;
21-
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
22-
use Symfony\Component\EventDispatcher\EventDispatcher;
2323

2424
/**
2525
* Main application for PHPCRSH
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
namespace PHPCR\Shell\Console\Helper;
4+
5+
use Symfony\Component\Filesystem\Filesystem;
6+
use Symfony\Component\Console\Helper\Helper;
7+
use Symfony\Component\Console\Helper\HelperSet as BaseHelperSet;
8+
9+
/**
10+
* Helper for launching external editor
11+
*
12+
* @author Daniel Leech <[email protected]>
13+
*/
14+
class HelperSet extends BaseHelperSet
15+
{
16+
public function get($name)
17+
{
18+
$level = error_reporting(0);
19+
$helper = parent::get($name);
20+
error_reporting($level);
21+
return $helper;
22+
}
23+
24+
}
25+

src/PHPCR/Shell/Console/Helper/TableHelper.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ class TableHelper extends OriginalTableHelper
1717
{
1818
private $numberOfRows = 0;
1919

20+
public function __construct()
21+
{
22+
parent::__construct(false);
23+
}
24+
2025
public function create()
2126
{
22-
return new self;
27+
return new self(false);
2328
}
2429

2530
public function addRow(array $row)

0 commit comments

Comments
 (0)