{"action":"created","issue":{"url":"https://api.github.com/repos/atoum/atoum/issues/523","labels_url":"https://api.github.com/repos/atoum/atoum/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/atoum/atoum/issues/523/comments","events_url":"https://api.github.com/repos/atoum/atoum/issues/523/events","html_url":"https://github.com/atoum/atoum/pull/523","id":118408430,"number":523,"title":"use composer autoloader in atoum if present","user":{"login":"agallou","id":320372,"avatar_url":"https://avatars.githubusercontent.com/u/320372?v=3","gravatar_id":"","url":"https://api.github.com/users/agallou","html_url":"https://github.com/agallou","followers_url":"https://api.github.com/users/agallou/followers","following_url":"https://api.github.com/users/agallou/following{/other_user}","gists_url":"https://api.github.com/users/agallou/gists{/gist_id}","starred_url":"https://api.github.com/users/agallou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agallou/subscriptions","organizations_url":"https://api.github.com/users/agallou/orgs","repos_url":"https://api.github.com/users/agallou/repos","events_url":"https://api.github.com/users/agallou/events{/privacy}","received_events_url":"https://api.github.com/users/agallou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T15:44:00Z","updated_at":"2015-11-23T16:02:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/atoum/atoum/pulls/523","html_url":"https://github.com/atoum/atoum/pull/523","diff_url":"https://github.com/atoum/atoum/pull/523.diff","patch_url":"https://github.com/atoum/atoum/pull/523.patch"},"body":"If we detect that atoum is in a composer environnement,\r\nwe load the composer autoloader within the atoum autoloaded.\r\n\r\nThis will be usefull for extensions :\r\nhaving to require manually the composer autoloader, in both\r\nbootstrap and .atoum files will not be needed anymore.\r\n\r\nWe can see this in the extension documentations. \r\nFor example : https://github.com/atoum/ruler-extension\r\n\r\nWe have to add two lines in the .atoum.php file : \r\n```php\r\n<?php\r\n\r\n// .atoum.php\r\n\r\nrequire_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';\r\n\r\n$runner->addExtension(new \\mageekguy\\atoum\\ruler\\extension($script));\r\n```"},"comment":{"url":"https://api.github.com/repos/atoum/atoum/issues/comments/158979897","html_url":"https://github.com/atoum/atoum/pull/523#issuecomment-158979897","issue_url":"https://api.github.com/repos/atoum/atoum/issues/523","id":158979897,"user":{"login":"scrutinizer-notifier","id":6398257,"avatar_url":"https://avatars.githubusercontent.com/u/6398257?v=3","gravatar_id":"","url":"https://api.github.com/users/scrutinizer-notifier","html_url":"https://github.com/scrutinizer-notifier","followers_url":"https://api.github.com/users/scrutinizer-notifier/followers","following_url":"https://api.github.com/users/scrutinizer-notifier/following{/other_user}","gists_url":"https://api.github.com/users/scrutinizer-notifier/gists{/gist_id}","starred_url":"https://api.github.com/users/scrutinizer-notifier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrutinizer-notifier/subscriptions","organizations_url":"https://api.github.com/users/scrutinizer-notifier/orgs","repos_url":"https://api.github.com/users/scrutinizer-notifier/repos","events_url":"https://api.github.com/users/scrutinizer-notifier/events{/privacy}","received_events_url":"https://api.github.com/users/scrutinizer-notifier/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T16:02:39Z","updated_at":"2015-11-23T16:02:39Z","body":"The [inspection](https://scrutinizer-ci.com/g/atoum/atoum/inspections/ccc8419d-6236-40a0-a3e7-5bc7d5cb35d3) completed: **Array**"}}