remove local project folder from gitignore
in App::__construct use echo instead of trigger_error
This commit is contained in:
		
							parent
							
								
									705423e0b3
								
							
						
					
					
						commit
						417017b667
					
				
							
								
								
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -2,6 +2,4 @@ phpunit.xml
 | 
				
			|||||||
reports
 | 
					reports
 | 
				
			||||||
sandbox
 | 
					sandbox
 | 
				
			||||||
vendor
 | 
					vendor
 | 
				
			||||||
composer.lock
 | 
					composer.lock
 | 
				
			||||||
/nbproject/private/
 | 
					 | 
				
			||||||
/nbproject/
 | 
					 | 
				
			||||||
@ -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);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user