Access parameter from the Command Class

Simple way, let command extend ContainerAwareCommand $this->getContainer()->getParameter(‘parameter_name’); or You should create seperate service class $service = $this->getContainer()->get(‘less_css_compiler’); //services.yml services: less_css_compiler: class: MyVendor\MyBundle\Service\LessCompiler arguments: [%less_compiler%] In service class, create constructor like above you mentioned public function __construct($less_compiler) { $this->less_compiler = $less_compiler; } Call the service from command class. Thats it. Reason: You are making command class … Read more

Best practice for writing a self-updating windows service [closed]

Google have an open-source framework called Omaha which does exactly what your point 1. describes. It runs as a scheduled Windows task in the background, outside the applications it manages. Google use Omaha to auto-update their Windows applications, including Chrome. Because it comes from Google, and because it is installed on every Windows machine that … Read more

tech