Skip to content

Commit 69bf8f9

Browse files
committed
remove getProjectDir method from MicroKernelTrait
1 parent f9f57c3 commit 69bf8f9

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ CHANGELOG
99
* Added the `framework.router.default_uri` configuration option to configure the default `RequestContext`
1010
* Made `MicroKernelTrait::configureContainer()` compatible with `ContainerConfigurator`
1111
* Added a new `mailer.message_bus` option to configure or disable the message bus to use to send mails.
12-
* Added flex-compatible default implementations for `MicroKernelTrait::registerBundles()` and `getProjectDir()`
12+
* Added flex-compatible default implementation for `MicroKernelTrait::registerBundles()`
1313
* Deprecated passing a `RouteCollectionBuilder` to `MicroKernelTrait::configureRoutes()`, type-hint `RoutingConfigurator` instead
1414
* The `TemplateController` now accepts context argument
1515
* Deprecated *not* setting the "framework.router.utf8" configuration option as it will default to `true` in Symfony 6.0

Kernel/MicroKernelTrait.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ abstract protected function configureRoutes(RoutingConfigurator $routes);
6060
*/
6161
abstract protected function configureContainer(ContainerConfigurator $c);
6262

63-
/**
64-
* {@inheritdoc}
65-
*/
66-
public function getProjectDir(): string
67-
{
68-
return \dirname((new \ReflectionObject($this))->getFileName(), 2);
69-
}
70-
7163
/**
7264
* {@inheritdoc}
7365
*/

Tests/Kernel/flex-style/src/FlexStyleMicroKernel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ public function getLogDir(): string
5050
return $this->cacheDir;
5151
}
5252

53+
public function getProjectDir(): string
54+
{
55+
return \dirname((new \ReflectionObject($this))->getFileName(), 2);
56+
}
57+
5358
public function __sleep(): array
5459
{
5560
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);

0 commit comments

Comments
 (0)