Skip to content

Commit

Permalink
Declaring dependencies for the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigori Kochanov committed Dec 7, 2020
1 parent 33908a4 commit 5d2588e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/acme-contracts/composer.json
@@ -1,8 +1,11 @@
{
"name": "acme/contracts",
"description": "a package for contracts between application and acme/image",
"description": "A package for contracts between application and acme/image",
"license": "MIT",
"version": "0.1",
"require": {
"php": "^8.0"
},
"authors": [
{
"name": "Grigori Kochanov",
Expand Down
5 changes: 4 additions & 1 deletion packages/acme-contracts/src/BaseModelInterface.php
Expand Up @@ -3,9 +3,12 @@

namespace Acme\Contracts;


/**
* @package Acme\Contracts
*/
interface BaseModelInterface
{
public function foo();

public function callBar();
}
5 changes: 5 additions & 0 deletions packages/acme-contracts/src/FooImplementationInterface.php
Expand Up @@ -2,6 +2,11 @@

namespace Acme\Contracts;

/**
* An interface for a callback injected to the BaseModelAdapter
*
* @package Acme\Contracts
*/
interface FooImplementationInterface
{
public function withBaseModel(BaseModelInterface $baseModel): void;
Expand Down
3 changes: 3 additions & 0 deletions packages/acme-image/composer.json
Expand Up @@ -10,6 +10,9 @@
}
],
"require": {
"php": "^8.0",
"symfony/dependency-injection": "^5.2",
"acme/contracts": "0.1"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 5d2588e

Please sign in to comment.