Skip to content

Commit

Permalink
afup#1110 NullOfficeFinder
Browse files Browse the repository at this point in the history
  • Loading branch information
stakovicz committed Apr 23, 2022
1 parent 7e9bc66 commit 12e1a14
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/config/config_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ parameters:
database_password: afup
github_authenticator: "AppBundle\\Security\\TestGithubAuthenticator"
slack_url: null

services:
AppBundle\Offices\OfficeFinder:
class: AppBundle\Offices\NullOfficeFinder
arguments: [ '@Geocoder\Provider\GoogleMaps' ]
2 changes: 1 addition & 1 deletion app/config/parameters.yml.dist-docker
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ parameters:
meetup_api_consumer_key: ""
meetup_api_consumer_secret: ""

google_groups_api_key: "AIzaSyCPp-Zuk4We9X8MNOFLpM-4wr9US96wdzs"
google_groups_api_key: ""

techno_watch_calendar_url: "https://docs.google.com/spreadsheets/d/2cUeAk86Ov7BLYyn0Ad9ge3ecbsdboeQH64wIU9a9Zzp/export?format=csv"
techno_watch_calendar_key: "9Yt0feebMyMrUWx"
Expand Down
14 changes: 14 additions & 0 deletions sources/AppBundle/Offices/NullOfficeFinder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace AppBundle\Offices;

use AppBundle\Association\Model\User;
use AppBundle\Event\Model\Invoice;

class NullOfficeFinder extends OfficeFinder
{
public function findOffice(Invoice $invoice, User $user = null)
{
return null;
}
}

0 comments on commit 12e1a14

Please sign in to comment.