This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from cultuurnet/bugfix/fix-missing-code
Fix missing code
- Loading branch information
Showing
40 changed files
with
2,159 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace CultuurNet\UDB3\CdbXmlService\Doctrine\DBAL; | ||
|
||
use Doctrine\DBAL\Schema\AbstractSchemaManager; | ||
|
||
interface SchemaConfiguratorInterface | ||
{ | ||
public function configure(AbstractSchemaManager $schemaManager); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace CultuurNet\UDB3\CdbXmlService\Iri; | ||
|
||
/** | ||
* A IRI generator that delegates its duties to a PHP callable. | ||
* | ||
* @link http://php.net/manual/en/language.types.callable.php | ||
*/ | ||
class CallableIriGenerator implements IriGeneratorInterface | ||
{ | ||
/** | ||
* @var callable | ||
*/ | ||
protected $callback; | ||
|
||
/** | ||
* Constructs a new CallableIriGenerator. | ||
* | ||
* @param callable $callback | ||
* The callback to delegate the generation of IRIs to. The callable needs | ||
* to take one string argument, the item to generate the IRI for. | ||
*/ | ||
public function __construct(callable $callback) | ||
{ | ||
$this->callback = $callback; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function iri($item) | ||
{ | ||
$callback = $this->callback; | ||
return $callback($item); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace CultuurNet\UDB3\CdbXmlService\Iri; | ||
|
||
/** | ||
* Interface for IRI generators. | ||
* | ||
* @link http://en.wikipedia.org/wiki/Dereferenceable_Uniform_Resource_Identifier | ||
*/ | ||
interface IriGeneratorInterface | ||
{ | ||
/** | ||
* Generates a IRI for a specific item. | ||
* | ||
* @param string $item | ||
* A string uniquely identifying an item. | ||
* | ||
* @return string | ||
* The IRI for the specified item. | ||
*/ | ||
public function iri($item); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.