magabriel / symfony-cli-skeleton Goto Github PK
View Code? Open in Web Editor NEWBasic skeleton for building a Symfony CLI application
License: Other
Basic skeleton for building a Symfony CLI application
License: Other
Hi I am attempting to use dependency inject with the services.yml file but it doesnt seem to work. here is what I have. Am i missing something?
services.yml
services:
filesystem:
class: Symfony\Component\Filesystem\Filesystem
version:
class: Skel\Lib\Version
logstash_service:
class: Dasher\Service\LogstashService
project_events:
class: Dasher\Console\Command\Gitlab\ProjectEventsCommand
arguments: ["logstash_service"]
tags:
- { name: console.command }
and the class I am attempting to use it in:
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Input\InputArgument;
use Dasher\Service\LogstashService;
use \GuzzleHttp\Client;
class ProjectEventsCommand extends Command{
protected $secure_config;
protected $client;
protected $logstash;
public function __construct(LogstashService $logstash){
$this->client="";
$this->secure_config="";
$this->logstash = $logstash;
parent::__construct();
}
I am getting this error:
Argument 1 passed to Dasher\Console\Command\Gitlab\ProjectEventsCommand::__construct() must be an instance of Dasher\Service\LogstashService
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.