Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/admin commands #123

Merged
merged 3 commits into from
Apr 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 64 additions & 60 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ protected function createEntityManager(\PDO $pdo, Configuration $config): Entity
}
$configuration = Setup::createAnnotationMetadataConfiguration($this->annotationDirectories, true);

// Set a quote
$configuration->setQuoteStrategy(new AnsiQuoteStrategy());

// Create entity manager
$entityManager = EntityManager::create(["pdo" => $pdo], $configuration);

Expand Down
9 changes: 3 additions & 6 deletions src/ComposerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
namespace LotGD\Core;

use Composer\{
Composer,
Factory,
IO\NullIO,
Package\CompletePackageInterface
Composer, Factory, IO\NullIO, Package\CompletePackageInterface, Package\PackageInterface
};
use Monolog\Logger;

Expand Down Expand Up @@ -73,7 +70,7 @@ public function getPackageForLibrary(string $library): CompletePackageInterface

/**
* Return all the packages installed in the current setup.
* @return array<Composer\PackageInterface>
* @return PackageInterface[]
*/
public function getPackages(): array
{
Expand All @@ -85,7 +82,7 @@ public function getPackages(): array

/**
* Return a list of the configured packages which are LotGD modules (type = 'lotgd-module').
* @return array Array of \Composer\PackageInterface.
* @return PackageInterface[]
*/
public function getModulePackages(): array
{
Expand Down
Loading