raneomik / watchdogbundle Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
On composer update of a SF 4.4 project, we have this error :
[KO]
Script cache:clear returned with error code 1
!!
!! In ContainerBuilder.php line 996:
!!
!! You have requested a non-existent service "Raneomik\WatchdogBundle\Watchdog\Watchdog".
!!
!!
!!
Script @auto-scripts was called via post-update-cmd
Add watchdogs data to Profile DataCollection :
Launching this command :
~$: symfony console debug:config WatchdogBundle
Outputs this error :
In AbstractConfigCommand.php line 115:
The extension with alias "watchdog" does not have its getConfiguration() method setup.
Currently, it supports a unique default watchdog config, under dates
config key.
It would be nice if applications could embed, if needed, dynamicaly named Watchdog like this :
for example, giving this configuration :
watchdog:
maintance:
- { relative: 'mondays' }
weekend:
- compound :
- { relative: 'saturdays' }
- { relative: 'sundays' }
it should provide those Watchdog services :
class Service
{
__construct(
private Watchdog $maintenanceWatchdog,
private Watchdog $weekendWatchdog
) {
}
....
where each of those watchdogs have their independent time configuration.
Needs adaptations on provided handler & the handling subscriber.
Occasionnaly, make a WatchdogInterface to impose method signatures & leverage code coupling (and then permitting fakes / dummies / stubs / own logics).
Also, maybe flexibilise the config to support a unique defautlt wathdog as follows :
watchdog:
- { relative: 'mondays' }
providing this unique service :
class Service
{
__construct(
private WatchdogInterface $watchdog
) {
}
....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.