Coder Social home page Coder Social logo

coresphere / consolebundle Goto Github PK

View Code? Open in Web Editor NEW
140.0 16.0 54.0 238 KB

Commandline interface in browser for Symfony2

License: BSD 3-Clause "New" or "Revised" License

PHP 53.05% CSS 5.36% JavaScript 32.22% Twig 9.37%
symfony php bundle symfony-bundle console

consolebundle's Introduction

ConsoleBundle

Build Status Quality Score Code Coverage

This bundle allows you accessing the Symfony2 console via your browser.

Features

  • Colored output
  • Autocompletion for command names
  • Local command history (localStorage)
  • cache:clear works

Installation

  1. Make sure you have php 5.5 or newer installed. Make sure your composer file does not override the required php version of your project with in older one via the config.plattform.php setting.

  2. Install the latest version via composer:

    composer require coresphere/console-bundle
  3. Register the bundle in you AppKernel in the development section

    // app/AppKernel.php
    public function registerBundles()
    {
       $bundles = [
     		// other bundles here...
       ];
    
       if (in_array($this->getEnvironment(), ['dev', 'test'])) {
       	// ...
       	$bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();
    	}
    
       return $bundles;
    }
  4. Add the bundle's route to your app/config/routing_dev.yml

    # app/config/routing_dev.yml
    
    # ...
    _main:
    	resource: routing.yml
    
    coresphere_console:
    	resource: .
    	type: extra
  5. run the assets:install command to install the css and js files

    ./app/console assets:install web

Tips

  • Type .clear to clear the console window

Preview

Screenshot

Dependencies

  • jQuery
  • Twig

Compatibility

Tested with:

  • Chrome
  • Firefox 4
  • Opera 11
  • Safari 5

consolebundle's People

Contributors

bghosts avatar core23 avatar jokey2k avatar laszlokorte avatar matzz avatar mickaelcollet avatar n1c01a5 avatar oviglo avatar shurastik avatar takeno avatar tomasvotruba avatar vicb avatar warxcell avatar yalg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

consolebundle's Issues

cache:clear --env=prod=true

this command create folder "prod=true" in app/cache/

eg : cache:clear --env=prod=fldfsjldfj create folder named fldfsjldfj

Support for symfony 2.1 ?

hello I used your bundle in my project. And it was really helpfull.
Now I migrate my project to symfoy 2.1 and I can't use your bundle because there is no composer.json in your project and I can ont find on packagist.org

Is there any plan for it ? I can help if you want ...

Thanks

Fatal error: Class 'CoreSphere\ConsoleBundle\CoreSphereConsoleBundle' not found

Hi,
I m on a Symfony 2.8.15 And when i m trying to install the bundle,
I follow the readme.
composer require coresphere/console-bundle ( add the 0.2.0 )

I register $bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();

put the route in dev_route
_console: resource: "@CoreSphereConsoleBundle/Resources/config/routing.yml" type: extra prefix: /_console

And when I try ./app/console assets:install web
it say to me

Fatal error: Class 'CoreSphere\ConsoleBundle\CoreSphereConsol
eBundle' not found in C:\wamp64\www\budget\app\AppKernel.php
on line 29

So i don't know How to fix this.

Here is my composer.json

{
    "name": "symfony/framework-standard-edition",
    "license": "MIT",
    "type": "project",
    "description": "The \"Symfony Standard Edition\" distribution",
    "autoload": {
        "psr-4": { "": "src/" },
        "classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
    },
    "require": {
        "php": ">=5.3.9",
        "symfony/symfony": "2.8.*",
        "doctrine/orm": "^2.4.8",
        "doctrine/doctrine-bundle": "~1.4",
        "symfony/swiftmailer-bundle": "~2.3",
        "symfony/monolog-bundle": "~2.11.3",
        "sensio/distribution-bundle": "~5.0",
        "sensio/framework-extra-bundle": "^3.0.2",
        "incenteev/composer-parameter-handler": "~2.0",
        "knplabs/knp-paginator-bundle": "^2.5",
        "friendsofsymfony/user-bundle": "~2.0@dev"
    },
    "require-dev": {
        "sensio/generator-bundle": "~3.0",
        "symfony/phpunit-bridge": "~2.7"
    },
    "scripts": {
        "symfony-scripts": [
            "Incenteev\\ParameterHandler\\ScriptHandler::buildParameters",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile",
            "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::prepareDeploymentTarget"
        ],
        "post-install-cmd": [
            "@symfony-scripts"
        ],
        "post-update-cmd": [
            "@symfony-scripts"
        ]
    },
    "config": {
        "bin-dir": "bin",
        "platform": {
            "php": "5.3.9"
        }
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-web-dir": "web",
        "symfony-assets-install": "relative",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "2.8-dev"
        }
    }
}

In the vendor, i have to Console Bundle

Thx

Question helper does not work

I create a command that use question helper. It work fine with app/console command line but it does not work with console bundle.
Is there a way to workaround this issue ?

PHP 5.4

Why did you remove PHP versions 5.3 and 5.4 ? I can't use the updated version of the bundle now, and SF2.7 allows using >=5.3.9...

Not working with symfony/console 4

Hello,

Here is the message I have when trying to install the bundle on Symfony 4 :

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for coresphere/console-bundle ^0.5.0 -> satisfiable b                                                    y coresphere/console-bundle[0.5.0].
    - coresphere/console-bundle 0.5.0 requires symfony/console ~2.7|~3.0 -> sati                                                    sfiable by symfony/console[2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev                                                    , 3.3.x-dev, 3.4.x-dev, v2.7.0, v2.7.0-BETA1, v2.7.0-BETA2, v2.7.1, v2.7.10, v2.                                                    7.11, v2.7.12, v2.7.13, v2.7.14, v2.7.15, v2.7.16, v2.7.17, v2.7.18, v2.7.19, v2                                                    .7.2, v2.7.20, v2.7.21, v2.7.22, v2.7.23, v2.7.24, v2.7.25, v2.7.26, v2.7.27, v2                                                    .7.28, v2.7.29, v2.7.3, v2.7.30, v2.7.31, v2.7.32, v2.7.33, v2.7.34, v2.7.35, v2                                                    .7.36, v2.7.37, v2.7.38, v2.7.39, v2.7.4, v2.7.40, v2.7.41, v2.7.42, v2.7.43, v2                                                    .7.44, v2.7.45, v2.7.5, v2.7.6, v2.7.7, v2.7.8, v2.7.9, v2.8.0, v2.8.0-BETA1, v2                                                    .8.1, v2.8.10, v2.8.11, v2.8.12, v2.8.13, v2.8.14, v2.8.15, v2.8.16, v2.8.17, v2                                                    .8.18, v2.8.19, v2.8.2, v2.8.20, v2.8.21, v2.8.22, v2.8.23, v2.8.24, v2.8.25, v2                                                    .8.26, v2.8.27, v2.8.28, v2.8.29, v2.8.3, v2.8.30, v2.8.31, v2.8.32, v2.8.33, v2                                                    .8.34, v2.8.35, v2.8.36, v2.8.37, v2.8.38, v2.8.4, v2.8.5, v2.8.6, v2.8.7, v2.8.                                                    8, v2.8.9, v3.0.0, v3.0.0-BETA1, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6,                                                     v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.0-BETA1, v3.1.0-RC1, v3.1.1, v3.1.10, v3.1                                                    .2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.0-BETA1                                                    , v3.2.0-RC1, v3.2.0-RC2, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v                                                    3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.0-BE                                                    TA1, v3.3.0-RC1, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v                                                    3.3.16, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0,                                                     v3.4.0-BETA1, v3.4.0-BETA2, v3.4.0-BETA3, v3.4.0-BETA4, v3.4.0-RC1, v3.4.0-RC2,                                                     v3.4.1, v3.4.2, v3.4.3, v3.4.4, v3.4.5, v3.4.6, v3.4.7, v3.4.8] but these confli                                                    ct with your requirements or minimum-stability.

Thank you !

update jquery

Currently jquery 1.8.3 is used in this bundle

Currently available versions of jQuery are 1.11.3 or 2.1.4.

I think the 2.1.4 version might be usable without breaking anything.

symfony3

I have this error with symfony3
Catchable Fatal Error: Argument 1 passed to CoreSphere\ConsoleBundle\Controller\ConsoleController::__construct() must be an instance of Symfony\Component\Templating\EngineInterface, none given, called in /home/genusbzhta/var/cache/dev/classes.php on line 2084 and defined

Just a contribution

Hello, really this post isn't to report a bug.
I am so happy for use your web console in my projects.
I review the translations file and i detected that don't are spanish translations.
I created the file translations for spanish.
I put here.
Greetings...

coresphere_console:
headline:
index: "Consola"
working_directory: 'Directorio de trabajo'
environment: 'Entorno'
welcome_message: 'Escriba %command% para obtener una lista de los comandos.'
loading: 'Cargando...'
suggestion_head: 'Quieres decir:'
empty_response: 'Terminado!'

Problem installation

HI,

I have a problem when i try to install this bundle, for the last commande :
./bin/console assets:install web or php bin/console assets:install

It return me always the same problem :

php bin/console assets:install web je me retrouve avec l'erreur :
In CheckExceptionOnInvalidReferenceBehaviorPass.php line 32:

The service "coresphere_console.controller" has a dependency on a non-existent service "templating".

How can i fix it ?

Error assets:install web

Hi everyone,

I have a project with Symfony2 and I use your bundle to execute my command lines. I have an error when I write assets:install web :

[Symfony\Component\Filesystem\Exception\IOException] Failed to remove file "web/bundles/framework/images/blue_picto_more.gif".

So, I have to do updates manually... I saw on the web that it was a permissions issue of the command line user. I read the "Setting up permissions" paragraph here http://symfony.com/doc/current/book/installation.html but the 'chmod +a' solution doesn't work, I'm not very friendly with ACL and the umask solution doesn't work either.

I don't know what to do now to make it work. My app/cache and app/logs folders have 777 rights. I can edit the httpd.conf of my server but I don't know what to write...

the cache:clear command works for me.

When I test php app/console assets:install web with a SSH connection (root user), I have this error :
[RuntimeException] Could not create cache directory "/path_of_my_website/httpdocs/app/cache/dev/annotations".

I don't understand because this folder is already created and it has 777 rights. I did this to be sure :
chmod -R 777 app/cache

I don't know very well command lines, so if you could explain me in a simple way, I will be thankful.

Catchable Fatal Error

Hello,

Got an error message :

Catchable Fatal Error: Argument 3 passed to CoreSphere\ConsoleBundle\Controller\ConsoleController::__construct() must be an instance of Symfony\Bundle\FrameworkBundle\Console\Application, string given, called in [myPath]\app\cache\dev\appDevDebugProjectContainer.php on line 462 and defined" at [myPath]\vendor\coresphere\console-bundle\Controller\ConsoleController.php line 45

Autocomplete: Tab behavior

It would be great that tab stops after the first ":" where different commands are possible.

IE after "doct", tab should stop on "doctrine:"

Autocomplete: Parameters

It would be better if the interface would complete the parameters of the method too.

PS: thanks for the current version!

[parsererror] SyntaxError: JSON.parse: unexpected character

Hello,

I'm using your bundle, witch is very useful, in Symfony 2.0 and 2.1.6 because we don't have ssh access.

I've update to Symfony 2.1.7, and now, i'm getting the error 👍

 ** [parsererror] SyntaxError: JSON.parse: unexpected character

when i'm trying to clear the cache ? When some others commands are working (list, assets install web).

Can you help ? The "clea:cache" it's the command we most use ...

Thx

Invalid Argument Exception

Hi
Since the last update, i have this error when i don't add argument or when i add two arguments ...

[InvalidArgumentException]
The file "/xx/xx/xx/www/app/config/config_Array.yml" does not exist.

ClassNotFoundException in AppKernel.php : Attempted to load class "CoreSphereConsoleBundle" from namespace "CoreSphere\ConsoleBundle"

After installing CoreSphereConsoleBundle on my Symfony 2.7.4, this error hit me.

I figured the bundle wasn't automatically registered in the autoloas_psr4.php and tried to solve the problem by adding the following line under the autoload of my composer.json :

"CoreSphere\ConsoleBundle": "vendor/coresphere/console-bundle"

Which fixed the issue.

The autoload of my composer.json now looks like this :

"autoload" : {
"psr-4" : {
"" : "src/",
"CoreSphere\ConsoleBundle": "vendor/coresphere/console-bundle"
}
},

Fatal Error Class Not Found

Hi !

I'm on a Symfony 2.8.8 Application and i don't understand why the bundle does not work...
I got this error on running "php app/console assets:install web" and the same on running "php app/console server:run" :
Fatal error: Class 'CoreSphere\ConsoleBundle\CoreSphereConsoleBundle' not found in C:\wamp64\www\Vanessa\Application\app\AppKernel.php on line 30

Composer.json
"require": { "php": ">=5.3.9", "symfony/symfony": "2.8.*", "doctrine/orm": "^2.4.8", "doctrine/doctrine-bundle": "~1.4", "symfony/swiftmailer-bundle": "~2.3", "symfony/monolog-bundle": "~2.4", "sensio/distribution-bundle": "~5.0", "sensio/framework-extra-bundle": "^3.0.2", "incenteev/composer-parameter-handler": "~2.0", "egeloen/ckeditor-bundle": "^4.0", "friendsofsymfony/user-bundle": "~2.0@dev", "coresphere/console-bundle": "^0.2.0" },

AppKernel.php
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Front\HomeBundle\HomeBundle(),
new Admin\AdminBundle\AdminBundle(),
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
new User\UserBundle\UserBundle(),
new FOS\UserBundle\FOSUserBundle(),
);

    if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
        $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
        $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
        $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
        $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
        $bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();
    }

    return $bundles;
}

And routing_dev.php
_console: resource: "@CoreSphereConsoleBundle/Resources/config/routing.yml" type: extra prefix: /_console

Thanks in advance !

assetic:dump --env=prod

Executing this command gives me a 500 error:

ContextErrorException: Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /homepages/38/d179442560/htdocs/symfony/app/cache/dev/classes.php line 317

Line 317 in classes.php is:
ini_set('session.save_handler','files');

assetic:dump in dev environnement works fine.

Cache:clear doesn't work

I'm having issues executing the cache:clear command with this bundle.

On my server :

Clearing the cache for the prod environment with debug true

  [Symfony\Component\Filesystem\Exception\IOException]                                                  
  Failed to remove directory /var/www/sites/my-website/app/cache/prod_old/sessions

Is it about webserver's user rights ?

In local :

[error] Internal Server Error

And here is what I find in the logs for the local error :

[2013-08-21 11:51:53] request.CRITICAL: Exception thrown when handling an exception (Symfony\Component\Debug\Exception\ContextErrorException: Warning: file_put_contents(/var/www/sites/my-website/app/cache/dev/annotations/Symfony-Bundle-TwigBundle-Controller-ExceptionController.cache.php): failed to open stream: No such file or directory in /var/www/sites/my-website/vendor/doctrine/common/lib/Doctrine/Common/Annotations/FileCacheReader.php line 186) {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\ContextErrorException: Warning: file_put_contents(/var/www/sites/my-website/app/cache/dev/annotations/My-Bundle-Entity-MyEntityTranslation.cache.php): failed to open stream: No such file or directory in /var/www/sites/my-website/vendor/doctrine/common/lib/Doctrine/Common/Annotations/FileCacheReader.php line 186 at /var/www/sites/my-website/vendor/doctrine/common/lib/Doctrine/Common/Annotations/FileCacheReader.php:186)"}

Both commands work well from the command line.
I'm using Symfony 2.3.3 and CoreSphereConsoleBundle 0.1.0.

Drop jquery dependency

Maybe we do not need to use jquery at all.

Currently we use:

$.extend for merging the config object with the default config - could use pure js to do the merge
$.prototype.text() to access the input fields content - could use innerText and textContent
$.prototype.stop and $.prototype.slideToggle - could use css animation
$.prototype.next, $.prototype.is and $.prototype.closest - could use document.querySelector,
$.prototype.on and $.prototype.off for event binding - addEventListener should work in all browsers now
$.ajax for ajax request - could use raw ajax api

[parsererror] SyntaxError: JSON.parse: on cache:clear command

Hi,

I installed the bundle following the instructions.
When I run the command cache:clear, I have the following error:
"[parsererror] SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 9 column 1 of the JSON data"
The command cache:clear --env = prod works fine and the command "php bin/console cache: clear" on the server as well.
I can not understand which .json file it is in the error message.
Can you help me ?

Best regards.

Launch an infinite process

Hi all
This bundle is very useful but I have a little problem.
I create a webSocket server on my Symfony application and I'd like to launch it from your console.
When I launch it from the normal console I have no problems but from your console my application si blocked (there is no more response) .
I think this si due to a one thread system.
Do you have a solution ?
Thanks

non-existent service "templating" !

Hi,

I have this exception in my windows wamp64 server project :

**ServiceNotFoundException

The service "coresphere_console.controller" has a dependency on a non-existent service "templating".**

This is my composer.json
"php": ">=5.5.9",
"coresphere/console-bundle": "dev-master",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/orm": "^2.5",
"friendsofsymfony/user-bundle": "dev-master",
"incenteev/composer-parameter-handler": "^2.0",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^5.0.0",
"symfony/monolog-bundle": "^3.1.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^2.6.4",
"symfony/symfony": "3.4.*",
"symfony/templating": "^3.4",
"twig/twig": "^1.0||^2.0"

AppKernet.php :
if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new CoreSphere\ConsoleBundle\CoreSphereConsoleBundle();

rooting_dev.yml :
coresphere_console:
resource: .
type: extra

have run this command :
console assets:install web

I work with WampServer :
Version 3.0.6 - 64bit
Version Apache : 2.4.23
Version de PHP : 5.6.25 n
Server Software : Apache/2.4.23 (Win64) PHP/5.6.25 - Port défini pour Apache : 80

Does anybody can help please ?

Thank you,

Black/White-listing some commands

I was thinking it would be a nice addition, for example when you're using this bundle to allow your client to handle simple tasks in production (custom symfony commands) but does not want to let him a chance to drop the database entirely (for example).

It could be implemented with new configuration keys like :

coresphere_console:
    filtering:
       whitelist: [ 'client-friendly-namespace:*', 'cache:clear', 'assetic:dump', 'assets:install' ]

or

coresphere_console:
    filtering:
       blacklist: [ 'doctrine:*', 'generate:*', 'config:dump-reference' ]

It would probably need to support * syntax (or it would become a mess) and handle conflicts between the two configuration (white/black). Seldaek's MonologBundle use a clean syntax for the channels selection, might be worth to get some inspiration from there.

I would be willing to take some time to implement it. What do you think ?

[error] Not Found for every command

Hi,

For one of my project, I get a "[error] Not Found" error every time I try to fire a command...
On other projetcs, the bundle works fine... I've check configuration, uninstalled/reinstalled the bundle...
Any clue ?
This happens both in local dev mode or on preprod server.

DEPRECATED - The "pattern" option is deprecated. Use the "path" option in the route definition instead.

On Symfony 2.7 Update :

DEPRECATED - The "pattern" option in file "vendor\coresphere\console-bundle\CoreSphere\ConsoleBundle/Resources/config/routing.yml" is deprecated since version 2.2 and will be removed in 3.0. Use the "path" option in the route definition instead.

Called from YamlFileLoader::load() at line 107
Called from FileLoader::import() at line 157
Called from YamlFileLoader::parseImport() at line 93
Called from YamlFileLoader::load() at line 107
Called from FileLoader::import() at line 157
Called from YamlFileLoader::parseImport() at line 93
Called from YamlFileLoader::load() at line 45
Called from DelegatingLoader::load() at line 76
Called from DelegatingLoader::load() at line 1572
Called from Router::getRouteCollection() at line 1353
Called from Router::getMatcherDumperInstance() at line 1303
Called from Router::Symfony\Component\Routing\{closure}()
Called from call_user_func() at line 46
Called from ConfigCacheFactory::cache() at line 1313
Called from Router::getMatcher() at line 1277
Called from Router::matchRequest() at line 2045
Called from RouterListener::onKernelRequest()
Called from call_user_func() at line 61
Called from WrappedListener::__invoke()
Called from call_user_func() at line 1826
Called from EventDispatcher::doDispatch() at line 1759
Called from EventDispatcher::dispatch() at line 1920
Called from ContainerAwareEventDispatcher::dispatch() at line 124
Called from TraceableEventDispatcher::dispatch() at line 3083
Called from HttpKernel::handleRaw() at line 3056
Called from HttpKernel::handle() at line 3207
Called from ContainerAwareHttpKernel::handle() at line 2429
Called from Kernel::handle() at line 28

javascript tests

As the user interaction on the client side (autocomplete, command history) is a core feature of this bundle I would be desirable to have some test coverage for the javascript code.

Cosmetic: auto-complete & scroll

When you have a long list of command (ie "doctr") and you navigate down the commands, there should be some scrolling implemented so that the command that is focused is always displayed

Symphony 4.4: DataCollector contains 1 abstract method and must therefore be declared abstract or implement the remaining methods

composr install...

Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! !! Fatal error: Class CoreSphere\ConsoleBundle\DataCollector\DataCollector contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Contracts\Service\ResetInterface::reset) in vendor\coresphere\console-bundle\DataCollector\DataCollector.php on line 34 !! !! In DataCollector.php line 34: !! !! Error: Class CoreSphere\ConsoleBundle\DataCollector\DataCollector contains 1 abstract method and must therefore be !! declared abstract or implement the remaining methods (Symfony\Contracts\Service\ResetInterface::reset) !! !! !! Script @auto-scripts was called via post-update-cmd

I should have added this manually in the class DataCollector.php

public function reset() { return parent::reset(); }

Tag new version

Last version was tagged 2 years ago, what about tagging new one?

Create a 1.0 tag

Once the pending issues/PR get solved, it would be great to add a v1.0.0 tag. This would allow to use a stable flag in composer.json.

There is no extension able to load the configuration for "_main"

I am using Symfony 3.2.6 and the bundle isn't working properly. See the output below:

$ symfony_console assets:install
                                                                                                                                                                                                                  
  [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]                                                                                                                                      
  There is no extension able to load the configuration for "_main" (in /var/www/html/oneview_symfony/app/config/config_dev.yml). Looked for namespace "_main", found "framework", "security", "twig", "monolog",  
   "swiftmailer", "doctrine", "sensio_framework_extra", "easy_admin", "stof_doctrine_extensions", "fresh_doctrine_enum", "doctrine_mongodb", "bazinga_js_translation", "jms_serializer", "quote", "debug", "web_  
  profiler", "sensio_distribution", "core_sphere_console"                                                                                                                                                         
                                                                                                                                                                                                                  

$ symfony_console assets:install
                                                                               
  [Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]   
  There is no extension able to load the configuration for "main" (in /var/ww  
  w/html/oneview_symfony/app/config/config_dev.yml). Looked for namespace "ma  
  in", found "framework", "security", "twig", "monolog", "swiftmailer", "doct  
  rine", "sensio_framework_extra", "easy_admin", "stof_doctrine_extensions",   
  "fresh_doctrine_enum", "doctrine_mongodb", "bazinga_js_translation", "jms_s  
  erializer", "quote", "debug", "web_profiler", "sensio_distribution", "core_  
  sphere_console"                                                             

Any ideas?

I've found this #64 and this PR #59 but I don't know if it applies on this case

Loader not called

Hi,

Pulled a fresh Symfony 2.7.4 and added consolebundle
The routing is not added.

Bundle works if you add routing manually via import in app/config/routing.yml so the services are loaded.

I threw an error in the CoreSphere\ConsoleBundle\Routing\Loader -> load() method (threw 1/0), the error was not raised... so is this method called at all?. Any idea why routing not added?

Invalid YAML when installing on Symfony3

To make this bundle work with Symfony3, I needed to modify the service.yml file. In fact, it was required to single quote all the arguments which starts by @. I don't know why.

5 - '@templating'
6 - '@coresphere_console.executer'
7 - '@coresphere_console.application'
13 - '@kernel'
18 - '@routing.loader.yml'
35 - '@kernel

Text and Coloration error

Hi !

I have a little problem since the last update (bundle version: dev-master).
The text in the console is scary :)
image

it's almost the same for the color:
image
image

Text with this "tag" (it's for rendering i suppose) are already like that in the ajax response. Maybe it come from the controller but you just add a language file in the last update so i really don't know where that could come.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.