Skip to content

Commit 2be861c

Browse files
Initial commit
0 parents commit 2be861c

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/vendor/

composer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "webarchitect609/bitrix-neverinclude",
3+
"description": "Bitrix automatic module including",
4+
"authors": [
5+
{
6+
"name": "Sergey Gripinskiy",
7+
"email": "web-architect@mail.ru"
8+
}
9+
],
10+
"require": {}
11+
}

src/main/lib/NeverInclude.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
4+
namespace WebArch\NeverInclude;
5+
6+
use RuntimeException;
7+
8+
class NeverInclude
9+
{
10+
public function __construct()
11+
{
12+
if (!spl_autoload_register([$this, 'autoloadModule'])) {
13+
throw new RuntimeException('Error register autoloader ' . __CLASS__);
14+
}
15+
}
16+
17+
private function autoloadModule($class)
18+
{
19+
/*
20+
* Кейсы:
21+
*
22+
*/
23+
24+
25+
26+
}
27+
}

0 commit comments

Comments
 (0)