Giter VIP home page Giter VIP logo

monologextrabundle's People

Contributors

jeromemacias avatar nclshart avatar notfloran avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

jeromemacias

monologextrabundle's Issues

Add type hinting

The 2.0 version will support only php > 7 so we can use type hinting

gelf optionnal

TODO :

  • suggest graylog2/gelf-php instead of required
  • Add option to enable Gelf publisher
  • Check that graylog2/gelf-php exist when gelf publisher is enabled

Error if HttpFoundation is not present

In a project without web :

In DefinitionErrorExceptionPass.php line 37:

  Cannot autowire service "Hexanet\Common\MonologExtraBundle\Provider\Session
  \SymfonySessionIdProvider": argument "$session" of method "__construct()" r
  eferences interface "Symfony\Component\HttpFoundation\Session\SessionInterf
  ace" but no such service exists. It cannot be auto-registered because it is
   from a different root namespace.


Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache handling the symfony-scripts event terminated with an exception


  [RuntimeException]
  An error occurred when executing the "'cache:clear --no-warmup'" command:




  In DefinitionErrorExceptionPass.php line 37:

    Cannot autowire service "Hexanet\Common\MonologExtraBundle\Provider\Session
    \SymfonySessionIdProvider": argument "$session" of method "__construct()" r
    eferences interface "Symfony\Component\HttpFoundation\Session\SessionInterf
    ace" but no such service exists. It cannot be auto-registered because it is
     from a different root namespace.

Clean SymfonySessionIdProvider constructor

Related to @nclsHart comment :

public function __construct(bool $startSession = false, SessionInterface $session)

This is not directly related to this PR, but arguments with default value should be at end of arguments list.

ConsoleExceptionListener - command can be null

$ sf hexaenet:doctor

Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function getName() on null in /Users/floranbrutel/dev/si/applications/citadel/vendor/hexanet/monolog-extra-bundle/src/EventListener/ConsoleExceptionListener.php:42
Stack trace:
#0 [internal function]: Hexanet\Common\MonologExtraBundle\EventListener\ConsoleExceptionListener->onConsoleException(Object(Symfony\Component\Console\Event\ConsoleErrorEvent), 'console.error', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher))
#1 /Users/floranbrutel/dev/si/applications/citadel/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php(104): call_user_func(Array, Object(Symfony\Component\Console\Event\ConsoleErrorEvent), 'console.error', Object(Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher))
#2 /Users/floranbrutel/dev/si/applications/citadel/vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php(212): Symfony\Component\EventDispatcher\Debug\WrappedListener in /Users/floranbrutel/dev/si/applications/citadel/vendor/hexanet/monolog-extra-bundle/src/EventListener/ConsoleExceptionListener.php on line 42

$event->getCommand(); return Command or null : we need to adapt the ConsoleExceptionListener

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.