Hey Guys,
please take a look at your example-plugin here.
After doing
mkdir -p /var/azuracast/www/plugins/example-plugin
cd /var/azuracast/www/plugins/example-plugin
git clone https://github.com/AzuraCast/example-plugin.git .
It will be end up in
thrown in /var/azuracast/www/plugins/example-plugin/events.php on line 7
[18-Jan-2023 12:46:25 UTC] PHP Fatal error: Uncaught TypeError: App\Plugins::{closure}(): Argument #1 ($dispatcher) must be of type App\EventDispatcher, App\CallableEventDispatcher given in /var/azuracast/www/plugins/example-plugin/events.php:7
Stack trace:
#0 [internal function]: App\Plugins->{closure}()
#1 /var/azuracast/www/src/Plugins.php(79): call_user_func()
#2 /var/azuracast/www_tmp/CompiledContainer.php(323): App\Plugins->registerEvents()
#3 [internal function]: CompiledContainer::{closure}()
#4 /var/azuracast/www/vendor/php-di/invoker/src/Invoker.php(74): call_user_func_array()
#5 /var/azuracast/www/vendor/php-di/php-di/src/CompiledContainer.php(121): Invoker\Invoker->call()
#6 /var/azuracast/www_tmp/CompiledContainer.php(326): DI\CompiledContainer->resolveFactory()
#7 /var/azuracast/www/vendor/php-di/php-di/src/CompiledContainer.php(57): CompiledContainer->get17()
#8 /var/azuracast/www_tmp/CompiledContainer.php(331): DI\CompiledContainer->get()
#9 /var/azuracast/www/vendor/php-di/php-di/src/CompiledContainer.php(57): CompiledContainer->get18()
#10 /var/azuracast/www/src/AppFactory.php(65): DI\CompiledContainer->get()
#11 /var/azuracast/www/src/AppFactory.php(36): App\AppFactory::buildAppFromContainer()
#12 /var/azuracast/www/bin/console(13): App\AppFactory::createCli()
#13 {main}
thrown in /var/azuracast/www/plugins/example-plugin/events.php on line 7
Thanks!
Hey Guys,
please take a look at your example-plugin here.
After doing
It will be end up in
Thanks!