serviceLocator = $serviceLocator; } /** * @param AdapterInterface $connection * @param array $data * @return AdminAccount */ public function create(AdapterInterface $connection, $data) { return new AdminAccount( $connection, $this->serviceLocator->get(\Magento\Framework\Encryption\Encryptor::class), $data ); } }