|
You are here |
tomasvotruba.com | ||
| | | | |
www.tobymackenzie.com
|
|
| | | | | [AI summary] A developer shares a step-by-step guide on upgrading a Symfony 3 project to version 4 without using the Flex plugin, covering dependency management, configuration changes, and file cleanup. | |
| | | | |
symfony.com
|
|
| | | | | In Symfony 4.1 you can get all container parameters in a service injecting one of its constructor arguments with the ParameterBagInterface. | |
| | | | |
matthiasnoback.nl
|
|
| | | | | As you may have read on the Symfony blog: as of Symfony 2.4 you can register console commands using the service tag console.command. What is the big deal, you would say. Well, let's discover it now. This is how the documentation tells you to write your console commands: namespace Matthias\ConsoleBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; class MyCommand extends ContainerAwareCommand { protected function configure() { $this->setName('my:action'); } protected function execute(InputInterface $input, OutputInterface $output) { // do something } } How to make sure your command will be noticed? Until Symfony 2.4 there wer... | |
| | | | |
andreabergia.com
|
|
| | | Error handling is a fundamental aspect of programming. Unless you are writing hello world, you will need to handle errors in your code. In this post, I will discuss a bit the most common approaches used by various programming languages. Return error codes This is one of the most ancient strategies - if a function can fail, it can simply return an error code - often a negative number, or null. | ||