Skip to content

Commit 262d398

Browse files
committed
Merge branch 'release/0.6.41'
2 parents 706e786 + 5885f8e commit 262d398

File tree

4 files changed

+17
-14
lines changed

4 files changed

+17
-14
lines changed

.version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"strategy": "semver",
33
"major": 0,
44
"minor": 6,
5-
"patch": 40,
5+
"patch": 41,
66
"build": 0
77
}

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ Create a `public/index.php` file:
4343
require_once '../vendor/autoload.php';
4444

4545
// Bootstrap the application
46-
$app = Boot('../config');
46+
$app = boot('../config');
4747

4848
// Dispatch the current request
49-
Dispatch($app);
49+
dispatch($app);
5050
```
5151

5252
### 2. Configure Apache (.htaccess)

tests/BootstrapTest.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use PHPUnit\Framework\TestCase;
99

1010
// Import the namespaced functions
11-
use function Neuron\Mvc\Boot;
12-
use function Neuron\Mvc\Dispatch;
11+
use function Neuron\Mvc\boot;
12+
use function Neuron\Mvc\dispatch;
1313
use function Neuron\Mvc\ClearExpiredCache;
1414

1515
class BootstrapTest extends TestCase
@@ -88,7 +88,7 @@ public function testBootWithValidConfig()
8888
$this->Root->getChild( 'config.yaml' )->setContent( $ConfigContent );
8989

9090
// Boot the application
91-
$App = Boot( $BasePath );
91+
$App = boot( $BasePath );
9292

9393
// Assertions
9494
$this->assertInstanceOf( Application::class, $App );
@@ -117,7 +117,7 @@ public function testBootWithMissingConfig()
117117
->setContent( $VersionContent );
118118

119119
// Boot with non-existent config path - should now use environment variable
120-
$App = Boot( vfsStream::url( 'test/nonexistent' ) );
120+
$App = boot( vfsStream::url( 'test/nonexistent' ) );
121121

122122
// Should successfully create application with environment path
123123
$this->assertInstanceOf( Application::class, $App );
@@ -156,7 +156,7 @@ public function testBootWithDefaultBasePath()
156156
try
157157
{
158158
// Boot with non-existent config path - will use current directory
159-
$App = Boot( vfsStream::url( 'test/nonexistent' ) );
159+
$App = boot( vfsStream::url( 'test/nonexistent' ) );
160160

161161
// Should successfully create application
162162
$this->assertInstanceOf( Application::class, $App );
@@ -191,7 +191,7 @@ public function testDispatchGetRequest()
191191
} ) );
192192

193193
// Dispatch - will use actual superglobals
194-
Dispatch( $App );
194+
dispatch( $App );
195195
}
196196

197197
/**
@@ -206,7 +206,7 @@ public function testDispatchFunctionIsCalled()
206206
->with( $this->isType( 'array' ) );
207207

208208
// Dispatch
209-
Dispatch( $App );
209+
dispatch( $App );
210210
}
211211

212212
/**
@@ -228,7 +228,7 @@ public function testDispatchParametersStructure()
228228
} ) );
229229

230230
// Dispatch
231-
Dispatch( $App );
231+
dispatch( $App );
232232
}
233233

234234
/**
@@ -244,7 +244,7 @@ public function testDispatchWithException()
244244

245245
// Capture output
246246
ob_start();
247-
Dispatch( $App );
247+
dispatch( $App );
248248
$Output = ob_get_clean();
249249

250250
// Should output 'Ouch.' when exception is caught
@@ -292,15 +292,15 @@ public function testClearExpiredCacheNoEntries()
292292
*/
293293
public function testLegacyBootstrap()
294294
{
295-
$App = Boot( 'examples/config' );
295+
$App = boot( 'examples/config' );
296296
$this->assertInstanceOf( Application::class, $App );
297297
}
298298

299299
public function testLegacyMissingConfig()
300300
{
301301
// With the fix, this now falls back to environment/default path
302302
// Since there's a .version.json in current directory, it will succeed
303-
$App = Boot( 'examples/non-there' );
303+
$App = boot( 'examples/non-there' );
304304
$this->assertInstanceOf( Application::class, $App );
305305
}
306306
}

versionlog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.6.41 2025-08-11
2+
* renamed the bootstrap functions.
3+
14
## 0.6.40 2025-08-10
25
* Added the ability to render partials.
36

0 commit comments

Comments
 (0)