Download the PHP package wikimedia/scoped-callback without Composer
On this page you can find all versions of the php package wikimedia/scoped-callback. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download wikimedia/scoped-callback
More information about wikimedia/scoped-callback
Files in wikimedia/scoped-callback
Download wikimedia/scoped-callback
More information about wikimedia/scoped-callback
Files in wikimedia/scoped-callback
Vendor wikimedia
Package scoped-callback
Short Description Make a callback run when a dummy object leaves the scope.
License GPL-2.0-or-later
Homepage https://www.mediawiki.org/wiki/ScopedCallback
Package scoped-callback
Short Description Make a callback run when a dummy object leaves the scope.
License GPL-2.0-or-later
Homepage https://www.mediawiki.org/wiki/ScopedCallback
Please rate this library. Is it a good library?
Informations about the package scoped-callback
ScopedCallback
The ScopedCallback class allows for running a function after the instance goes out of scope. It can be useful for making sure teardown or cleanup functions run even if exceptions are thrown. It also makes for a cleaner API for developers, by not requiring the callback to be called manually each time.
Additional documentation about the library can be found on MediaWiki.org.
Usage
Running tests
composer install --prefer-dist
composer test
All versions of scoped-callback with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package wikimedia/scoped-callback contains the following files
Loading the files please wait ....