public function load(ObjectManager $manager) { $client = new Client(); $client->setAllowedGrantTypes(['password', 'refresh_token']); $client->setRedirectUris([]); $client->setRandomId('123'); $client->setSecret('456'); $manager->persist($client); $manager->flush(); }
/** * {@inheritDoc} */ public function getAllowedGrantTypes() { $this->__initializer__ && $this->__initializer__->__invoke($this, 'getAllowedGrantTypes', []); return parent::getAllowedGrantTypes(); }