remove local project folder from gitignore

in App::__construct use echo instead of trigger_error
This commit is contained in:
Ben Connito 2014-09-12 11:46:33 -04:00
parent 705423e0b3
commit 417017b667
2 changed files with 3 additions and 4 deletions

2
.gitignore vendored
View File

@ -3,5 +3,3 @@ reports
sandbox sandbox
vendor vendor
composer.lock composer.lock
/nbproject/private/
/nbproject/

View File

@ -62,7 +62,7 @@ class App {
*/ */
public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null) { public function __construct($httpHost = 'localhost', $port = 8080, $address = '127.0.0.1', LoopInterface $loop = null) {
if (extension_loaded('xdebug')) { if (extension_loaded('xdebug')) {
trigger_error("XDebug extension detected. Remember to disable this if performance testing or going live!", E_USER_WARNING); echo("XDebug extension detected. Remember to disable this if performance testing or going live!" . PHP_EOL);
} }
if (3 !== strlen('✓')) { if (3 !== strlen('✓')) {
@ -102,6 +102,7 @@ class App {
$flashSock->listen(843, '0.0.0.0'); $flashSock->listen(843, '0.0.0.0');
}else{ }else{
fclose($test); fclose($test);
echo('flash socket server already running on 843' . PHP_EOL);
} }
} }