src/Hooks/PostCommit.php
public function postCommit(
        InputInterface $input,
        OutputInterface $output,
        ParameterBagInterface $configuration
    ): void {
        // Yes we can send a notification to slack fx?
        // Then we would just add some configuration with slack channel, username etc etc
        // And then require the slack API via composer and do the code here

        // But very simple, we can say Hello World! to the console
        $output->write('Hello World!');
    }
public function postCommit(
        InputInterface $input,
        OutputInterface $output,
        ParameterBagInterface $configuration
    ): void {
        // Yes we can send a notification to slack fx?
        // Then we would just add some configuration with slack channel, username etc etc
        // And then require the slack API via composer and do the code here

        // But very simple, we can say Hello World! to the console
        $output->write('Hello World!');
    }
public function postCommit ( InputInterface $ input , OutputInterface $ output , ParameterBagInterface $ configuration ) : void { // Yes we can send a notification to slack fx? // Then we would just add some configuration with slack channel, username etc etc // And then require the slack API via composer and do the code here // But very simple, we can say Hello World! to the console $ output -> write ( 'Hello World!' ) ; }
Called after the actual commit is made. Because of this, it cannot disrupt the commit.
It is mainly used to allow notifications.

@param InputInterface        $input
@param OutputInterface       $output
@param ParameterBagInterface $configuration
Called after the actual commit is made . Because of this it cannot disrupt the commit . It is mainly used to allow notifications .