You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 25, 2024. It is now read-only.
Please, the docs are confusing to init. I think that added some code lines will be more clearly to start with this module. I'm assuming that use is defined on head of php file to work with namespaces:
Add a empty array to BooBoo constructor prevent: Uncaught ArgumentCountError (Too few arguments to function League\BooBoo\BooBoo::__construct()).
Get an order to work with BooBoo.
Understand the workflow from this application.
// first
$booboo = new BooBoo([]);
// set formatters before call register
$html = new HtmlFormatter();
$null = new NullFormatter();
$html->setErrorLimit(E_ERROR | E_WARNING | E_USER_ERROR | E_USER_WARNING);
$null->setErrorLimit(E_ALL);
$booboo->pushFormatter($null);
$booboo->pushFormatter($html);
// finally, call to register to run BooBoo
$booboo->register();
The main error can be resolved added a default empty array to BooBoo constructor too if you want to add any code modification.
Thanks.
The text was updated successfully, but these errors were encountered:
i don't understand how works this lib do u have some cookbook or more explain please
<?php
require 'vendor/autoload.php';
use League\BooBoo\BooBoo;
use League\BooBoo\Exception;
use League\BooBoo\Formatter\HtmlFormatter;
use League\BooBoo\Formatter\NullFormatter;
use League\BooBoo\Handler;
use League\BooBoo\Util;
// first
$booboo = new BooBoo([]);
// set formatters before call register
$html = new HtmlFormatter();
$null = new NullFormatter();
$html->setErrorLimit(E_ERROR | E_WARNING | E_USER_ERROR | E_USER_WARNING);
$null->setErrorLimit(E_ALL);
$booboo->pushFormatter($null);
$booboo->pushFormatter($html);
// This causes a fatal error
echo $toto;
// finally, call to register to run BooBoo
$booboo->register();
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Please, the docs are confusing to init. I think that added some code lines will be more clearly to start with this module. I'm assuming that
use
is defined on head of php file to work with namespaces:BooBoo
constructor prevent:Uncaught ArgumentCountError
(Too few arguments to function League\BooBoo\BooBoo::__construct()).BooBoo
.The main error can be resolved added a default empty array to
BooBoo
constructor too if you want to add any code modification.Thanks.
The text was updated successfully, but these errors were encountered: