{"action":"created","issue":{"url":"https://api.github.com/repos/stavarengo/php-sigep/issues/57","repository_url":"https://api.github.com/repos/stavarengo/php-sigep","labels_url":"https://api.github.com/repos/stavarengo/php-sigep/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/stavarengo/php-sigep/issues/57/comments","events_url":"https://api.github.com/repos/stavarengo/php-sigep/issues/57/events","html_url":"https://github.com/stavarengo/php-sigep/pull/57","id":155826554,"number":57,"title":"Update bootstrap-exemplos.php","user":{"login":"mozgbrasil","id":17202780,"avatar_url":"https://avatars.githubusercontent.com/u/17202780?v=3","gravatar_id":"","url":"https://api.github.com/users/mozgbrasil","html_url":"https://github.com/mozgbrasil","followers_url":"https://api.github.com/users/mozgbrasil/followers","following_url":"https://api.github.com/users/mozgbrasil/following{/other_user}","gists_url":"https://api.github.com/users/mozgbrasil/gists{/gist_id}","starred_url":"https://api.github.com/users/mozgbrasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozgbrasil/subscriptions","organizations_url":"https://api.github.com/users/mozgbrasil/orgs","repos_url":"https://api.github.com/users/mozgbrasil/repos","events_url":"https://api.github.com/users/mozgbrasil/events{/privacy}","received_events_url":"https://api.github.com/users/mozgbrasil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-19T20:23:40Z","updated_at":"2016-05-20T16:04:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stavarengo/php-sigep/pulls/57","html_url":"https://github.com/stavarengo/php-sigep/pull/57","diff_url":"https://github.com/stavarengo/php-sigep/pull/57.diff","patch_url":"https://github.com/stavarengo/php-sigep/pull/57.patch"},"body":"Boa Tarde\r\n\r\nCriei uma pasta /test\r\n\r\nCriei um arquivo composer.json com o seguinte conteudo\r\n\r\n\t{\r\n\t   \"minimum-stability\": \"dev\",\r\n\t   \"prefer-stable\": true,\r\n\t   \"require\": {\r\n\t      \"stavarengo/php-sigep\": \"*\"\r\n\t   }\r\n\t}\r\n\r\nNo terminal executei o comando\r\n\r\n\tcomposer install\r\n\r\nFoi feito o download \r\n\r\n  - Installing stavarengo/php-sigep-fpdf (dev-master fe32b93)\r\n    Cloning fe32b93f484f6a3da25571d252461496bb90181f\r\n\r\n  - Installing stavarengo/php-sigep (dev-master 579206f)\r\n    Cloning 579206f3eefb670d30816cc7bab83efe0b7d5da8\r\n\r\nAcessei \r\n\r\nhttp://127.0.0.1/public_html/test/vendor/stavarengo/php-sigep/exemplos/imprimirEtiquetas.php\r\n\r\ne foi exibido o erro\r\n\r\n\tFatal error: Uncaught RuntimeException: Não encontrei a classe PhpSigepFPDF. Execute \"php composer.phar install\" ou baixe o projeto https://github.com/stavarengo/php-sigep-fpdf manualmente e adicione a classe no seu path. in /home/marcio/dados/public_html/test/vendor/stavarengo/php-sigep/exemplos/bootstrap-exemplos.php:18 Stack trace: #0 /home/marcio/dados/public_html/test/vendor/stavarengo/php-sigep/exemplos/imprimirEtiquetas.php(3): require_once() #1 {main} thrown in /home/marcio/dados/public_html/test/vendor/stavarengo/php-sigep/exemplos/bootstrap-exemplos.php on line 18\r\n\r\nEditei o arquivo\r\n\r\n/test/vendor/stavarengo/php-sigep/exemplos/bootstrap-exemplos.php\r\n\r\nalterando o trecho\r\n\r\nDE\r\n\r\n\t$autoload = __DIR__ . '/../vendor/autoload.php';\r\n\tif (file_exists($autoload)) {\r\n\t    require_once $autoload;\r\n\t}\r\n\r\nPARA\r\n\r\n\t$included = include file_exists(__DIR__ . '/../vendor/autoload.php') ? __DIR__ . '/../vendor/autoload.php' : __DIR__ . '/../../../autoload.php';\r\n\r\n\tif (!$included) {\r\n\t    echo 'You must set up the project dependencies, run the following commands:' . PHP_EOL . 'curl -sS https://getcomposer.org/installer | php' . PHP_EOL . 'php composer.phar install' . PHP_EOL;\r\n\t    \r\n\t    throw new Exception(\"Erro disparado a partir de __FILE__\");\r\n\r\n\t    exit(1);\r\n\t}\r\n\r\nFuncionou o apontamento para o autoload\r\n\r\nMas agora está sendo dispardo o seguinte erro\r\n\r\n\tDeprecated: Methods with the same name as their class will not be constructors in a future version of PHP; FPDF has a deprecated constructor in /home/marcio/dados/public_html/test/vendor/stavarengo/php-sigep-fpdf/fpdf.php on line 12\r\n\r\n\tDeprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ReedSolomon has a deprecated constructor in /home/marcio/dados/public_html/test/vendor/stavarengo/php-sigep/src/PhpSigep/Pdf/Semacode.php on line 31\r\n\r\n\tDeprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Semacode has a deprecated constructor in /home/marcio/dados/public_html/test/vendor/stavarengo/php-sigep/src/PhpSigep/Pdf/Semacode.php on line 155\r\n\tFPDF error: Some data has already been output, can't send PDF file\r\n\r\nVejo que a biblioteca FPDF é mantida no seguinte repositório\r\n\r\n\thttps://github.com/Setasign/FPDF\r\n\r\nPorque não usar a mesma ?\r\n\r\nA correção para o ultimo erro acima é feita trocando o nome do método por __construct"},"comment":{"url":"https://api.github.com/repos/stavarengo/php-sigep/issues/comments/220647709","html_url":"https://github.com/stavarengo/php-sigep/pull/57#issuecomment-220647709","issue_url":"https://api.github.com/repos/stavarengo/php-sigep/issues/57","id":220647709,"user":{"login":"stavarengo","id":816369,"avatar_url":"https://avatars.githubusercontent.com/u/816369?v=3","gravatar_id":"","url":"https://api.github.com/users/stavarengo","html_url":"https://github.com/stavarengo","followers_url":"https://api.github.com/users/stavarengo/followers","following_url":"https://api.github.com/users/stavarengo/following{/other_user}","gists_url":"https://api.github.com/users/stavarengo/gists{/gist_id}","starred_url":"https://api.github.com/users/stavarengo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stavarengo/subscriptions","organizations_url":"https://api.github.com/users/stavarengo/orgs","repos_url":"https://api.github.com/users/stavarengo/repos","events_url":"https://api.github.com/users/stavarengo/events{/privacy}","received_events_url":"https://api.github.com/users/stavarengo/received_events","type":"User","site_admin":false},"created_at":"2016-05-20T16:04:58Z","updated_at":"2016-05-20T16:04:58Z","body":"Vou dar uma olhada com calma depois. Valeu.\n\nEnviado de dispositivo móvel.\nRafael Stavarengo\n\nOn May 19, 2016 20:18, \"Gustavo Bobrow\" <notifications@github.com> wrote:\n\n> nao me lembro de ter feito alteracao para utilizar ... @stavarengo\n> <https://github.com/stavarengo> isso faz sentido? acho que precisa fazer\n> um double check antes de merge pra nao correr o risco de quebrar o resto\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly or view it on GitHub\n> <https://github.com/stavarengo/php-sigep/pull/57#issuecomment-220473840>\n>\n"}}
{"actor":{"display_login":"stavarengo"}}