Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on May 23, 2023. It is now read-only.
/repl-bundlePublic archive

Add a Boris REPL to the Symfony console

NotificationsYou must be signed in to change notification settings

99designs/repl-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Important: This bundle is no longer under active development. Consider usingPsyshBundle as an alternative.


Provides arepl command for the Symfony console, powered byBoris.

Installation

Add as a development dependency tocomposer.json:

composer require --dev 99designs/repl-bundle

Register the bundle inapp/AppKernel.php:

class AppKernelextends Kernel{publicfunctionregisterBundles()    {$bundles =array(// all your run-time bundles        );if ($this->getEnvironment() =='dev') {$bundles[] =newNinetyNine\Bundle\ReplBundle();        }return$bundles;    }}

Usage

Run via the Symfony console:

app/console repl

The following variables are imported into the global namespace:

  • $kernel: Application kernel
  • $container: The DI container

Issues

Boris depends onPHP's process control extension. Even if this isinstalled, you may see errors like this:

PHP Warning:  pcntl_fork() has been disabled for security reasons in /my-project/vendor/d11wtq/boris/lib/Boris/Boris.php on line 148PHP Notice:  fwrite(): send of 1 bytes failed with errno=32 Broken pipe in /my-project/vendor/d11wtq/boris/lib/Boris/EvalWorker.php on line 205

If you see these errors, you'll need to edit your PHP CLI configuration(typically found at/etc/php5/cli/php.ini) to allow invocation of the namedfunctions.


[8]ページ先頭

©2009-2025 Movatter.jp