PHP code example of mediact / dependency-guard

1. Go to this page and download the library: Download mediact/dependency-guard library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mediact / dependency-guard example snippets



try {
    doSomething();
} catch (Throwable $exception) {
    // Do nothing.
}


try {
    doSomething();
} catch (\PHPUnit\Framework\AssertionFailedError $assertionException) {
    // Re-throw the exception, as it is part of the testing framework.
    throw $assertionException;
} catch (Throwable $exception) {
    // Do nothing.
}