Skip to content

Instantly share code, notes, and snippets.

View pjedrzejewski's full-sized avatar

Paweł Jędrzejewski pjedrzejewski

View GitHub Profile
UserBundle_users_list:
   pattern:  /users/{page}.{_format}
   defaults: { _controller: UserBundle:Users:list, page: 1, _format: html }
   requirements:
      _format:  html
<?php
if (
!$this->isOauthExists()
&& ('oauth' === $driver
|| (isset($fetcherConfig['options']['method']) && 'oauth' === $fetcherConfig['options']['method']))
) {
throw new \InvalidArgumentException('You should install and enable InoriTwitterBundle');
}